0

About Machine Learning(pandas)

In pandas it is saying that it can take in data and view it as a table that's human read able but here in the example of titanic passengers when I've run that code it doesn't showing the data with table and even can't readable, Thank you

11th Jun 2020, 5:56 AM
Abbas Uddin Tasin
Abbas Uddin Tasin - avatar
12 Réponses
+ 3
It's in table. Rows and columns. Try to print only first three columns as: print(df.iloc[:,:3]) May be your table was unorganised because it just didn't fit on screen of your phone?
11th Jun 2020, 6:54 AM
Anton Popov
+ 1
Hm... Try to rotate the phone😉 My output's table is pretty readable. Or what kind of table you want to see as output?
11th Jun 2020, 6:26 AM
Anton Popov
+ 1
Nope it's still same.Yeah,may be you are right it's not fitting on my screen. Thank you for your cooperation.
12th Jun 2020, 4:07 PM
Abbas Uddin Tasin
Abbas Uddin Tasin - avatar
0
import pandas as pd df = pd.read_csv('https://sololearn.com/uploads/files/titanic.csv') print(df.head())
11th Jun 2020, 6:01 AM
Abbas Uddin Tasin
Abbas Uddin Tasin - avatar
0
Let me discuss my problem from the first I understood almost everything but in pandas it is saying that it can view data as table which is human readable.ok? The code I shared in my previous comment it is from the example of titanic passengers in pandas part.When I run that code it didn't show nothing like a table and the data also unorganised. Could you please elaborate?
11th Jun 2020, 6:15 AM
Abbas Uddin Tasin
Abbas Uddin Tasin - avatar
0
import pandas as pd df = pd.read_csv('https://sololearn.com/uploads/files/titanic.csv') print(df.head()) Could please run this code and tell me what is the output.is it in table or not? Table I mean there will row and column
11th Jun 2020, 6:36 AM
Abbas Uddin Tasin
Abbas Uddin Tasin - avatar
0
Did you run it on the playground or on your computer. If it's on your computer, post the code here
12th Jun 2020, 5:33 PM
Powersurge
Powersurge - avatar
0
Nope,its in my mobile
15th Jun 2020, 4:56 AM
Abbas Uddin Tasin
Abbas Uddin Tasin - avatar
0
can i download csv file
20th Jun 2020, 1:01 PM
Paapa Fahodzi
Paapa Fahodzi - avatar
0
Sure
20th Jun 2020, 3:09 PM
Abbas Uddin Tasin
Abbas Uddin Tasin - avatar
0
how?
21st Jun 2020, 1:17 AM
Paapa Fahodzi
Paapa Fahodzi - avatar