+ 2

Why the code can't be executed

I can't execute this code please help >▂< It's even in try yourself https://code.sololearn.com/cm4Job1EHTNb/?ref=app

11th Sep 2020, 6:36 PM
Nikitha Yuvaraj
Nikitha Yuvaraj - avatar
4 odpowiedzi
0
You literally asked this exact same question 3 hours ago, but for whatever reason you deleted it, and it was then I provided you with basically the exact same answer https://code.sololearn.com/cgLGnyE10IS6/#py
11th Sep 2020, 6:49 PM
Steven M
Steven M - avatar
+ 3
You have to capitalize column names: import pandas as pd df=pd.read_csv('https://sololearn.com/uploads/files/titanic.csv') small_df= df[['Age','Sex','Survived']] print (small_df.head())
11th Sep 2020, 6:39 PM
Bagon
Bagon - avatar
+ 1
Very thankful for your help 😌😌😊
11th Sep 2020, 6:44 PM
Nikitha Yuvaraj
Nikitha Yuvaraj - avatar
0
Actually before i saw answer I accidentally deleted it
11th Sep 2020, 6:51 PM
Nikitha Yuvaraj
Nikitha Yuvaraj - avatar