I am learning pandas in Python.Below is my code in Terimal:
import pandas as pd
dates = pd.date_range('20130101', periods=6)
Then I get this message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'date_range'
How to solve this problem?
print(pd.__file__)show? Maybe you're shadowing the pandas module with one of your own.print(pd.version.version)?