The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Display function

Display function

0
Votes
1
Answer

At 4:48 we did display(df) to see the dataframe, but why? Isn’t just writing df enough? What is the difference? I did both and they seemed the same to me.

1 Answer

365 Team
0
Votes

Hi, Colton!
 
Yes, you can. But in terms of length, sometimes Python displays ... instead of all the rows. I.e. visually, in the output, multiple rows can be skipped in the middle of the table.
 
To avoid this, we can use display(df).
 
Hope this helps.
Best,
The 365 Team