Question: First create a simple dataframe using the below code. import pandas as pd # create a list of lists data = [ [ ' A

First create a simple dataframe using the below code.
import pandas as pd
# create a list of lists
data =[['A1',2,4,8],['A2',3,7,17],['A3',1, None, 7],['A4',989,186,3698],['A5',0,0,None]]
# Create the pandas DataFrame
df= pd.DataFrame(data, columns=['ID', 'Value 1', 'Value 2','Value 3'])
df
Questions:
If you ran:
df = df.dropna()
df
How many rows would remain in the dataframe?
Group of answer choices
4
1
3
6
2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!