Skip to content

Commit 5bba370

Browse files
Chang Shewesm
Chang She
authored andcommitted
BUG: fixed broken imports
1 parent 5b40dd5 commit 5bba370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tools/plotting.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import pandas.core.common as com
99
from pandas.core.index import Index, MultiIndex
1010
from pandas.core.series import Series
11-
from pandas.tseries.frequencies import to_calendar_freq
1211
from pandas.tseries.index import DatetimeIndex
1312
from pandas.tseries.period import PeriodIndex
13+
from pandas.tseries.frequencies import get_period_alias
1414
from pandas.tseries.offsets import DateOffset
1515
import pandas.tseries.tools as datetools
1616

@@ -634,7 +634,7 @@ def _maybe_convert_index(self, data):
634634
isinstance(data, DataFrame)):
635635
freq = getattr(data.index, 'freqstr', None)
636636

637-
freq = to_calendar_freq(freq)
637+
freq = get_period_alias(freq)
638638

639639
if freq is None and hasattr(data.index, 'inferred_freq'):
640640
freq = data.index.inferred_freq

0 commit comments

Comments
 (0)