WorksheetsPandas, NumPy and Matplotlib
Total questions: 10
Worksheet time: 50secs
NumPy is mainly used for:
Creating websites
Fast numerical operations with arrays
Drawing cartoons
Writing novels
Which of these is faster for numerical tasks in Python?
Python lists
NumPy arrays
Excel sheets
Text files
Which function creates an array of evenly spaced numbers between two values?
linspace()
zeros()
describe()
groupby()
In NumPy, which function returns an array filled with all zeros?
np.ones()
np.zeros()
np.arange()
np.empty()
Pandas stores tabular data using which structure?
List
DataFrame
Array
Dictionary
Which Pandas method quickly gives count, mean, min, max, and quartiles?
.aggregate()
.describe()
.summarize()
.compute()
In Pandas, to group data by a column and get averages, you use:
.mean() directly
.groupby()
.sort_values()
.loc[]
Which Python library is used to create visualizations like line plots, bar charts, and scatter plots?
NumPy
Pandas
Matplotlib
TensorFlow
Which Matplotlib function creates a simple line graph?
To draw a histogram of ages in Matplotlib, you would use:
