Skip to content

Commit 53441fe

Browse files
committed
Added tests for arbitrary freqs
1 parent a14edfe commit 53441fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/plotting/test_datetimelike.py

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55

66
import numpy as np
7+
import itertools
78
import pytest
89

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

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

0 commit comments

Comments
 (0)