Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What command do you use to import the Pandas library?
Think about how you usually import libraries in Python.
How would you create a Series with numbers 1 to 5?
Remember, a Series is an array-like structure.
What does Pandas primarily focus on?
Think about what you would do with a dataset.
True or False: A DataFrame can only contain one data type.
Consider how a spreadsheet looks.
You have a CSV file named 'sales_data.csv'. Write code to load this file into a DataFrame and display the first five rows.
Use read_csv function to load the file, just ensure the file path is correct.
After creating a DataFrame, write a code snippet to filter and display rows where the 'Revenue' column is greater than 5000.
Use conditionals within brackets to filter DataFrame rows.
6 more questions in this section. Enroll free to practise them all.
Enroll free