May-18-2021, 11:54 AM
(May-18-2021, 11:50 AM)snippsat Wrote: See if you have name i filepandas.py
then rename of delete it.
import pandas as pd a = [1, 7, 2] myvar = pd.Series(a) print(myvar)See that pandas has a placement in
Output:0 1 1 7 2 2 dtype: int64site-packages
folder.
>>> import pandas >>> >>> pandas.Series <class 'pandas.core.series.Series'> >>> pandas.__file__ 'C:\\Python39\\lib\\site-packages\\pandas\\__init__.py'
correct, thanks!