CSE 6040 - 7.0 - Tidy Data Code Flashcards

1
Q

What modules do you need to read and display DataFrames?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

If the csv file is loaded into a variable (or df) called “irises”. How would you print the first 5 rows and columns of this dataframe?

irises = pd.read_csv(local_data[‘iris.csv’])

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Pandas Dataframe.describe() method used for?

A

Pandas describe() is used to view some basic statistical details like percentile, mean, std etc. of a data frame or a series of numeric values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you print indexes 5 through 10 of the irises dataframe?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Print rows where value of sepal length are greater than 5 in dataframe irises.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you print where sepal length values are between 5 and 10 vs printing rows 5 and 10 in the irises dataframe with sepal length as the lead column?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly