Skip to content

Commit 8f56fea

Browse files
committed
BUG: fix freq access in tsplot
1 parent 043a6a5 commit 8f56fea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tools/tsplot.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
import warnings
2424

25-
2625
# Generic documentation ........................................................
2726

2827
_doc_parameters = dict(
@@ -1296,7 +1295,7 @@ def tsplot(series, *args, **kwargs):
12961295
kwargs : var
12971296
Optional arguments for the creation of the subplot.
12981297
"""
1299-
base, mult = datetools._get_freq_code(series.freq)
1298+
base, mult = datetools._get_freq_code(series.index.freq)
13001299
if mult != 1:
13011300
series = series.resample(base)
13021301

0 commit comments

Comments
 (0)