Question:medium

The plot function of pandas matplotlib uses 'kind' argument which can accept a string indicating the type of graph to be plotted. Which of the following are valid plots?

Show Hint

The 'kind' argument in pandas can take values like 'line', 'bar', 'box', 'area', 'scatter', etc. Make sure to use the correct syntax.
Updated On: Feb 16, 2026
  • (A), (B) and (D) only
  • (A), (B) and (C) only
  • (A), (B), (C) and (D)
  • (B), (C) and (D) only
Show Solution

The Correct Option is A

Solution and Explanation

Step 1: Understanding the 'kind' argument.
The \texttt{plot} function in pandas utilizes a 'kind' argument to specify the plot type. Permissible values for 'kind' include plot types such as 'line', 'scatter', and 'bar'.
Step 2: Evaluate each option.
- Option (A) Area: This is a valid plot type for area charts. - Option (B) Box: This is a valid plot type for boxplots. - Option (C) Scatter: This is a valid plot type for scatter plots. - Option (D) Line: This is a valid plot type for line plots.
Step 3: Conclusion.
Valid plot types for the 'kind' argument are Area, Box, and Line. Scatter is also a valid plot type.
Final Answer: \[\boxed{\text{The valid plot types are Area, Box, Line, and Scatter.}}\]
Was this answer helpful?
0


Questions Asked in CUET (UG) exam