Skip to content

BUG: df.plot with a PeriodIndex causes a shift to the right when the frequency multiplier is greater than one #58322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

natmokval
Copy link
Contributor

@natmokval natmokval commented Apr 18, 2024

fixed a bug in DataFrame.plot that causes a shift to the right when the frequency multiplier is greater than one and index is PeriodIndex.

@natmokval natmokval changed the title BUG: df.plot works differently for freq="h" and freq="60min" BUG: df.plot with a PeriodIndex causes a shift to the right when the frequency multiplier is greater than one Apr 18, 2024
@natmokval natmokval marked this pull request as ready for review April 19, 2024 00:19
@mroeschke mroeschke added this to the 3.0 milestone Apr 19, 2024
@mroeschke mroeschke merged commit eee4039 into pandas-dev:main Apr 19, 2024
54 checks passed
@mroeschke
Copy link
Member

Thanks @natmokval

pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
…the frequency multiplier is greater than one (pandas-dev#58322)

* bug plots makes shift for period_range

* add a note to v3.0.0, correct test_plot_period_index_makes_no_right_shift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants