Setting xticks with time series broken in 0.21
See original GitHub issueHey. 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:
- Created 6 years ago
- Reactions:1
- Comments:15 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I opened https://github.com/pandas-dev/pandas/issues/18301 to make sure we look at this for 0.21.1
thanks 😃