Course Content
Introduction to pandas [track]
Introduction to pandas [track]
Challenge
Let's consolidate knowledge!
Method/Attribute | Description |
.head(n) | Returns the first n rows |
.sample(n) | Returns the n random rows |
.tail(n) | Returns the last n rows |
.columns | Returns columns' names |
Task
- Read the csv file from the following link:
https://codefinity-content-media.s3.eu-west-1.amazonaws.com/67798cef-5e7c-4fbc-af7d-ae96b4443c0a/audi.csv
and save in thedf
variable. - Print the first
2
rows of thedf
DataFrame. - Print
1
random row of thedf
DataFrame.
Thanks for your feedback!
Challenge
Let's consolidate knowledge!
Method/Attribute | Description |
.head(n) | Returns the first n rows |
.sample(n) | Returns the n random rows |
.tail(n) | Returns the last n rows |
.columns | Returns columns' names |
Task
- Read the csv file from the following link:
https://codefinity-content-media.s3.eu-west-1.amazonaws.com/67798cef-5e7c-4fbc-af7d-ae96b4443c0a/audi.csv
and save in thedf
variable. - Print the first
2
rows of thedf
DataFrame. - Print
1
random row of thedf
DataFrame.
Thanks for your feedback!
Challenge
Let's consolidate knowledge!
Method/Attribute | Description |
.head(n) | Returns the first n rows |
.sample(n) | Returns the n random rows |
.tail(n) | Returns the last n rows |
.columns | Returns columns' names |
Task
- Read the csv file from the following link:
https://codefinity-content-media.s3.eu-west-1.amazonaws.com/67798cef-5e7c-4fbc-af7d-ae96b4443c0a/audi.csv
and save in thedf
variable. - Print the first
2
rows of thedf
DataFrame. - Print
1
random row of thedf
DataFrame.
Thanks for your feedback!
Let's consolidate knowledge!
Method/Attribute | Description |
.head(n) | Returns the first n rows |
.sample(n) | Returns the n random rows |
.tail(n) | Returns the last n rows |
.columns | Returns columns' names |
Task
- Read the csv file from the following link:
https://codefinity-content-media.s3.eu-west-1.amazonaws.com/67798cef-5e7c-4fbc-af7d-ae96b4443c0a/audi.csv
and save in thedf
variable. - Print the first
2
rows of thedf
DataFrame. - Print
1
random row of thedf
DataFrame.