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.
JavaScript
x
5
1
import pandas as pd
2
df = pd.DataFrame
3
df - pd.read_csv("C:/Users/yusra/OneDrive/Documents/vgsales.csv")
4
df
5
Advertisement
Answer
You are not using pd.DataFrame
right. See below corrected code:
JavaScript
1
4
1
import pandas as pd
2
df=pd.read_csv("C:/Users/yusra/OneDrive/Documents/vgsales.csv")
3
df
4