0

matplotlib error ... Plzzz help (Machine Learning)

I installed the matplotlib from pip and then copy pasted the same in Sololearn machine learning lesson and it give me this error in my ide Survived,Pclass,Sex,Age,Siblings/Spouses,Parents/Children,Fare 0 0,3,male,22.0,1,0,7.25 1 1,1,female,38.0,1,0,71.2833 2 1,3,female,26.0,0,0,7.925 3 1,1,female,35.0,1,0,53.1 4 0,3,male,35.0,0,0,8.05 Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 2646, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item

25th Sep 2020, 3:10 AM
Abhay
Abhay - avatar
2 Réponses
+ 1
import pandas as pd import matplotlib as mt df = pd.read_csv("Titanic.csv") mt.scatter(df['Age'], df['Fair']) # Titanic.csv is in the same folder and download from sololearn website
25th Sep 2020, 6:12 AM
Abhay
Abhay - avatar
0
Can u share the exact code u used there . Can't get an idea on which line the error is .
25th Sep 2020, 4:42 AM
Akash Kumar S
Akash Kumar S - avatar