WorksheetsADVC191
Total questions: 5
Worksheet time: 3mins
Name
Class
Date
1.
Which function is used to replace the data?
a)
blank()
b)
reboot()
c)
replace()
d)
root()
2.
Which code is used to sort the value of dataframe by column name
a)
df.sort_values( by=[‘column_name’] )
b)
df.sort_values( by=[‘row_name’] )
c)
df.sorted( by=[‘column_name’] )
d)
df.sort_rows( by=[‘row_name’] )
3.
which function is used to get top 5 values from dataframe
a)
df.header(5)
b)
df.tail(5)
c)
df.head(5)
d)
df.sorted_values.heading(values=5)
4.
which function is used to get bottom 5 values from dataframe
a)
df.header(5)
b)
df.tail(5)
c)
df.head(5)
d)
df.sorted_values.heading(values=5)
5.
Why do we use df.dropna()
a)
to remove all rows which have NaN values
b)
remove all rows which have Number values
c)
remove all rows which have String values
d)
remove all columns which have NaN values
100 %
