
Pandas Basics
Flashcard
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Omar Choudhry
Used 1+ times
FREE Resource
Student preview

16 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the main pandas data structure?
Back
pandas.core.frame.DataFrame
2.
FLASHCARD QUESTION
Front
What function is used to read a CSV file in pandas?
Back
pd.read_csv('csv_name.csv', index_col=0)
3.
FLASHCARD QUESTION
Front
Why set index_col=0 in pd.read_csv?
Back
To remove the index column altogether, as pandas sets it to 1 by default.
4.
FLASHCARD QUESTION
Front
What does index_col=1 represent in pd.read_csv?
Back
Whatever the first column's data is (ex. could be company name, advisor name, etc...).
5.
FLASHCARD QUESTION
Front
How do you import the numpy or pandas modules?
Back
Import pandas as pd
import numpy as np
6.
FLASHCARD QUESTION
Front
How do you check the first few rows of a DataFrame in pandas?
Back
Use the df.head() function.
ex. f500.head()
You can enter in an argument into head to signify how many rows you want to view so f500.head(10) will display the first 10 rows.
By default it's set to 5
7.
FLASHCARD QUESTION
Front
What method is used to remove missing values in a DataFrame?
Back
Use the df.dropna() method.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
IT ENGLISH: Research Project Topics - Autonomous Vehicles
Flashcard
•
Professional Development
10 questions
Computer Network Types
Flashcard
•
University
10 questions
corporate finance
Flashcard
•
Professional Development
8 questions
محاضرة 1
Flashcard
•
Professional Development
10 questions
World War II
Flashcard
•
University
15 questions
Histograms
Flashcard
•
KG - University
9 questions
Bariatric flashcard
Flashcard
•
University
15 questions
Sustainable Building and BIM Flashcard
Flashcard
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade