Achieve 80% to pass. Wherever necessary, you are free to check the documentation of the Python packages when answering the questions.
- What is a DataFrame in pandas?
- A type of function
- A type of data structure that represents a table of data
- A type of data structure that represents numerical data of arbitrary dimensions
- A type of plot
- Consider the following pandas dataframe.
The above pandas dataframe is stored as df. What is the output of df.iloc[2,1]?
- 2023-07-03
- 2023-07-02
- 30.9
- 32.4
- Consider the pandas dataframe in question 2, which of the following pairs of commands produce the same output?
- df.iloc[2,1] and df.loc[2,1]
- df.iloc[0,1] and df.loc['Date','Temperature (degC)']
- df.iloc[1,0] and df.loc[1,'Date']
- df.iloc[3,1] and df.loc[3,'Date']
- Consider the pandas dataframe in question 2, which of the following is(are) the correct commands to calculate the average temperature?
- df['Temperature (degC)'].mean(axis=1)
- df['Temperature (degC)'].mean(axis=0)
- df['Temperature (degC)'].average(axis=1)
- df['Temperature (degC)'].average(axis=0)
- How do you convert a string to a datetime in pandas?
- Use the .to_datetime()
- Use the .strftime()
- Use the .datetime()
- Use the .split()
- What is the purpose of the .strftime() in pandas?
- To convert a datetime to a string with a specified format
- To convert a string to a datetime with a specified format
- To extract the hour, minute, or second from a datetime
- None of the above
- What is the difference between .contour() and .tricontour()?
- .contour() is used to plot contours for gridded data, while .tricontour() is used to plot contours for unstructured data
- .contour() is used to plot contours for unstructured data, while .tricontour() is used to plot contours for gridded data
- .contour() is used to plot contours for 2D data on a 2D plane, while .tricontour() is used to plot contours for 3D data on a 2D plane.
- .contour() is a function in matplotlib, while .tricontour() is not a function in matplotlib.
- What is interpolation?
- A method for smoothing out noisy data
- A method to calculate new data points outside of the known data range
- A method of estimation to construct new data points based on a set of given data points
- A method to mask out invalid or unwanted data points
- Which of the following statements is true regarding barycentric interpolation?
- Barycentric interpolation estimates a new data point by fitting a straight line between adjacent data points
- Barycentric interpolation estimates a new data point by fitting a piecewise polynomial function based on the known data points
- Barycentric interpolation uses barycentric weights to estimate a data point
- Barycentric interpolation cannot be used on gridded data
- What values can the Anomaly Correlation Coefficient (ACC) take?
- Only -1, 0, or 1
- Any positive value between 0 and 1
- Any negative value between -1 and 0
- Any value between -1 and 1
Previous | Continue |
---|