27. 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
28. 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
29. 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
33. Chi Square Formula
• Chi-square formula is used to compare two or more statistical data
sets. The chi-square formula is used in data that consist of variables
distributed across various categories and helps us to know whether
that distribution is different from what one would expect by chance.