Get Mode of NumPy Array in Python (2 Examples) | SciPy Library | How to Calculate by Column & Row

preview_player
Показать описание
Python code of this video:

import numpy as np # Load NumPy library

from scipy import stats

[7, 2, 3, 1, 8, 6],
[1, 3, 4, 2, 7, 1],
[1, 3, 2, 2, 8, 5]])
print(my_array) # Print example array
# [[1 5 2 2 1 6]
# [7 2 3 1 8 6]
# [1 3 4 2 7 1]
# [1 3 2 2 8 5]]

# [[1 3 2 2 8 6]]

# [[1]
# [1]
# [1]
# [2]]

Follow me on Social Media:

Рекомендации по теме
welcome to shbcf.ru