GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

To get the minimum value along each column of a 2D array, yo…

To get the minimum value along each column of a 2D array, you use np.min(arr, axis=__).

Read Details

A quality control analyst has measurements from 100 products…

A quality control analyst has measurements from 100 products across 5 different sensors (a 100×5 array). Explain how you would use NumPy to find: (1) the average reading for each sensor, (2) products where any sensor reading exceeds a threshold, and (3) the sensor with the highest variability. Which axis parameter would you use for each calculation and why?

Read Details

The NumPy function to calculate the standard deviation of an…

The NumPy function to calculate the standard deviation of an array is __.

Read Details

What is the result of np.where(arr > 3, arr, 0) for arr = np…

What is the result of np.where(arr > 3, arr, 0) for arr = np.array([1, 5, 2, 8])?

Read Details

What does np.concatenate([arr1, arr2], axis=1) do?

What does np.concatenate([arr1, arr2], axis=1) do?

Read Details

How do you access the value for key “city” in a dictionary n…

How do you access the value for key “city” in a dictionary named person?

Read Details

A while loop continues executing as long as its condition is…

A while loop continues executing as long as its condition is __.

Read Details

What is the output of list(range(5))?

What is the output of list(range(5))?

Read Details

Given numbers = [1, 2, 3, 4, 5], what does numbers[-1] retur…

Given numbers = [1, 2, 3, 4, 5], what does numbers[-1] return?

Read Details

In plt.bar(x, y, color=’blue’), what does the color paramete…

In plt.bar(x, y, color=’blue’), what does the color parameter control?

Read Details

Posts pagination

Newer posts 1 … 115 116 117 118 119 … 73,953 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top