Skip to content
Advertisement

Tag: jupyter-notebook

I keep getting the error message AttributeError: ‘pandas._libs.properties.AxisProperty’ object has no attribute ‘unique’. How should I fix this error?

I’m using a Jupyter notebook and I’m trying to open a data file and keep getting an error code AttributeError:’pandas._libs.properties.AxisProperty’ object has no attribute ‘unique’. This is my first time using Jupyter So I am not familiar with any error like this. Answer You are not using pd.DataFrame right. See below corrected code:

time data ‘2014-01’ does not match format ‘%y-%m’

im new to this python, and i want to convert month column from object to date in jupyter notebook using python. Here is my dataframe : and the code is : df[‘month’] = pd.to_datetime(df[‘month’], format = ‘%y-%m’) can anyone explain what is wrong with my code? cause i think the format was correct with year and month Answer You should

Jupyter Lab Render button disable

There is a green button call ‘Render with panel ‘ in my ‘Jupyer lab’ and I’m trying to get rid of it, not sure where its come from. Things I’ve tried: https://discourse.jupyter.org/t/how-can-i-disable-an-extension-in-jupyterlab-3/9332/2 the jupyter labextension disable didn’t work Answer That icon comes from the Panel Extension, ‘Panel: A high-level app and dashboarding solution for Python’. It’s part of their visual

Can’t find and read .csv file

I recently brought my code from Jupyter into VSCode. I fixed up some problems with my imports, but now I can’t find a .csv file. The code and .csv file are saved in the same folder. My code is: After running the program, it says, What’s going on here? How can I fix it? It was working perfectly in Jupyter.

Advertisement