0

I was writing codes in Pandas framework, but when I want to use pd. method, program is just giving me "AttributeError: partially initialized module 'pandas' has no attribute 'Series' (most likely due to a circular import)" this error. I have no clue about why.

import pandas as pd
student = ['Arin', 23, 'CE']
ps_student = pd.Series(student)
print(ps_student)
print(type(ps_student))
Léo
  • 89
  • 1
  • 11
  • 2
    Did you name this script `pandas.py`? Don't do that. – John Gordon Apr 26 '21 at 14:57
  • 2
    The script you're running is called `pandas.py`, you should rename it. See this similar question: https://stackoverflow.com/questions/67268732/attribute-error-no-attribute-as-load-workbook – ForceBru Apr 26 '21 at 14:58

0 Answers0