Im working in Jupyter and all of a sudden pandas won´t create a dataframe for me. The name of the notebook is "Cálculo_Energía_gases", I don´t think there is a name conflict.
This is the code:
df_energía_gases = pd.DataFrame(columns = ["Presión (Pa)","rpm","Q (m3/s)","MWgases (MW)","ref_prod","m3_prod"])
Pandas won´t work in other Jupiter notebooks, but it does work in visualstudiocode. I don´t know what is happening. What can I try to solve it?
CodePudding user response:
You probably have a file called pandas.py
in the same directory. When you import a module python will first search the directory you are in and then will check your python path for other modules. Delete or rename the pandas.py
and everything should work.
CodePudding user response:
Be sure you spelled it DataFrame with capital D and F.