question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting xticks with time series broken in 0.21

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jorisvandenbosschecommented, Nov 15, 2017

I opened https://github.com/pandas-dev/pandas/issues/18301 to make sure we look at this for 0.21.1

0reactions
amuellercommented, Nov 15, 2017

thanks 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pandas timeseries plot setting x-axis major and minor ticks ...
I want to be able to set the major and minor xticks and their labels for a time series graph plotted from a...
Read more >
Visualization — pandas 0.21.1 documentation
Lag plots are used to check if a data set or time series is random. Random data should not exhibit any structure in...
Read more >
pandas 0.21 documentation - DevDocs
Tabular data with heterogeneously-typed columns, as in an SQL table or Excel spreadsheet; Ordered and unordered (not necessarily fixed-frequency) time series ...
Read more >
Confusion matrix — scikit-learn 0.21.3 documentation
The figures show the confusion matrix with and without normalization by class support ... Split the data into a training set and a...
Read more >
mne.EpochsArray — MNE 0.21.2 documentation - MNE-Python
Epochs object from numpy array. Parameters. data array , shape (n_epochs, n_channels, n_times). The channels' time series for each epoch.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found