Question: 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]. ['A 5,0,0,
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]. ['A 5,0,0, None]] \# Create the pandas DataFrame df- pd. Dataframe(data, columns=['10', 'Value 1', 'Value 2', 'Value 3']) df Questions: If you ran: df=df.dropna()df How many rows would remain in the dataframe? 3 6 1 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
