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
11 Respostas
+ 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?
+ 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?
+ 1
Nope it's still same.Yeah,may be you are right it's not fitting on my screen.
Thank you for your cooperation.
0
import pandas as pd
df = pd.read_csv('https://sololearn.com/uploads/files/titanic.csv')
print(df.head())
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?
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
0
Did you run it on the playground or on your computer. If it's on your computer, post the code here
0
Nope,its in my mobile
0
can i download csv file
0
Sure
0
how?