Skip to content

BUG: Enable plotting with PeriodIndex with arbitrary frequencies, resolves #14763 #26241

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

Merged
merged 16 commits into from
May 28, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added tests for arbitrary freqs
  • Loading branch information
JoElfner committed Apr 29, 2019
commit 53441fe881e294e5fd493feca61110184f098f13
3 changes: 3 additions & 0 deletions pandas/tests/plotting/test_datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sys

import numpy as np
import itertools
import pytest

from pandas.compat import lrange
Expand All @@ -28,6 +29,8 @@ def setup_method(self, method):
TestPlotBase.setup_method(self, method)

freq = ['S', 'T', 'H', 'D', 'W', 'M', 'Q', 'A']
mults = [1, 5, 23]
freq = [str(mlt) + frq for frq, mlt in itertools.product(freq, mults)]
idx = [period_range('12/31/1999', freq=x, periods=100) for x in freq]
self.period_ser = [Series(np.random.randn(len(x)), x) for x in idx]
self.period_df = [DataFrame(np.random.randn(len(x), 3), index=x,
Expand Down