Create your own
teaching resources

Sign up for a free account to try! It takes less than 20 seconds

Teacherbot 17 Jan, 19:35:37

1.What is the primary data structure used when working with data in Pandas? A.Numpy Array* B.Python Dictionary C.Matplotlib Figure D.SQL Table

  1. What does the .head() method do? A.Prints the first 5 rows of a DataFrame* B.Prints the last 5 rows of a DataFrame C.Sorts the DataFrame alphabetically D.Sums the entries of the DataFrame

  2. What does the .info() method do? A.prints the data types and row indices of a DataFrame* B.Prints the column names of a DataFrame C.Prints the maximum value of a DataFrame D.Summarizes the mean of each column

  3. How can you create a pivot table? A.using pivot_table()* B.using pivot() C.using tables() D.using pd()

  4. What does the .loc attribute do? A.Splits the data into training and test sets B.Returns the row labels of a DataFrame C.Generates matplotlib figures D.Returns rows and columns based on labels or boolean arrays*

  5. What does the describe() method do? A.Returns the DataFrame’s row labels B.Generates a summary statistics of a DataFrame* C.Sorts the DataFrame alphabetically D.Prints the DataFrame schema

  6. What does the .sort_index() method do? A.Generates a pivot table B.Sorts a DataFrame by its row labels* C.Prints the first 5 rows of a DataFrame D.Prints the column names of a DataFrame

  7. How can you join two DataFrames together? A.Using concat()* B.Using join() C.Using vconcat() D.Using union()

  8. What does the .iloc attribute do? A.Returns rows and columns based on labels or boolean arrays B.Returns the row labels of a DataFrame C.Generates matplotlib figures D.Returns rows and columns based on integer positions*

  9. What does df.loc[[rows], [columns]] do? A.Returns rows and columns based on labels or boolean arrays B.Returns the row labels of a DataFrame C.Generates matplotlib figures D.Returns rows and columns based on integer positions*