21. Quiz Time
How do you handle missing values in a Pandas
Series in Python?
•By using arithmetic operators or functions.
•By using functions like fillna(), dropna(), etc.
•by using modules
•none of the above
22. Quiz Time
What is a Pandas Series in Python?
• A one-dimensional labeled array capable of holding any data type.
•By passing a list, dictionary, or scalar value to the Series() method of the Pandas library.
•By using arithmetic operators or functions.
•none of the above
23. Quiz Time
What is the result of the following code?
import pandas as pd
data = {'Name': ['John', 'Jane', 'Jim', 'Joan'],
'Age': [25, 30, 35, 40],
'Occupation': ['Engineer', 'Doctor', 'Teacher', 'Lawyer’]}
df = pd.DataFrame(data)
print(df.loc[0])
•Name: John, Age: 25, Occupation: Engineer
• Name: John, Age: 25
• John 25 Engineer
•none of the above