Skip to content

Setting xticks with time series broken in 0.21 #18283

Closed
@amueller

Description

@amueller

Hey. So this worked in 0.20 but not in 0.21:

import matplotlib.pyplot as plt
xticks = pd.date_range(start="10/10/2017", end="11/11/2017",
                       freq='D')
plt.xticks(xticks, xticks.strftime("%a %m-%d"))

TypeError: Cannot compare type 'Timestamp' with type 'float'

I'm not sure that was on purpose. So far every minor major release of pandas since my book came out broke the code in my book :-/ It would be nice to get deprecation warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions