Informatics Practices

Assertion (A): A histogram is basically used to represent data provided in the form of groups spread in non-continuous ranges.

Reasoning (R): matplotlib.pyplot.hist() function is used to compute and create histogram of a variable.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

PyPlot

1 Like

Answer

A is false but R is true.

Explanation
A histogram is used to represent data provided in the form of discrete or continuous ranges. The matplotlib.pyplot.hist() function is used to compute and create a histogram of a variable.

Answered By

2 Likes


Related Questions