Skip to content

Commit aa566cd

Browse files
0x0L0x0L
0x0L
authored and
0x0L
committed
tentative fix for python2.6
1 parent 13e8be1 commit aa566cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas_datareader/famafrench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _get_data(name):
9191
start = 0 if not match else match.start()
9292

9393
df = read_csv(StringIO('Date' + src[start:]), **params)
94-
try: df = df.to_period()
94+
try: df = df.to_period(df.index.inferred_freq[:1])
9595
except: pass
9696
datasets[i] = df
9797

0 commit comments

Comments
 (0)