NEW
Font size
WorksheetsRecap of Numpy, Pandas and Matplotlib
Total questions: 13
Worksheet time: 7mins
What does np.linspace() function returns?
Return evenly spaced values within a given interval
Return evenly spaced values over specified no. of intervals
Returns a line in space
np.full() returns?
Full array with random elements
Full array with incrementing elements
Full array with specified fixed value
For eg. arr=[[1,2,3],[4,6,6],[7,5,1]] what will arr[3,2] return?
5
6
None of these
What does axis=1 represent?
columns
rows
rows and columns
What does np.argsort() returns?
returns array in sorted order
returns array indices in sorted order
returns array with new shape
What are the two data structures in pandas?
list and tuple
list and dictionary
series and data frame
What does describe function returns?
Describe sthe shape of Data frame
Describe general statistics
Returns saem random table
How to create a copy of the Dataframe?
df1=df
df1=copy_of(df)
df1=df.copy()
Difference between loc and iloc
loc is integer based
iloc is label based
loc is label based and iloc is integer based
What does dropna() function drops?
NA values
0 values
NA and 0 values
Why do we use legend() function?
To label x axis and y axis
To give title to representation
To specify the line colors with label
What is unique() function?
Returns unique values
return unique column names
returns unique row names
Which graph can be used for representing percentages of parts as whole?
Histogram
Scatterplot
Pie chart
