CSE 6040 - 7.0 - Tidy Data Code Flashcards
What modules do you need to read and display DataFrames?
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’])
What is the Pandas Dataframe.describe() method used for?
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 do you print indexes 5 through 10 of the irises dataframe?
Print rows where value of sepal length are greater than 5 in dataframe irises.
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?