import numpy as np
temperatures = np.random.randn(7, 24) * 5 + 20
mean_week = np.mean(temperatures)
min_week = np.min(temperatures)
max_week = np.max(temperatures)
print(mean_week, min_week, max_week)
mean_day = np.mean(temperatures, axis=1)
mean_hour = np.mean(temperatures, axis=0)
print(mean_day)
print(mean_hour)
clipped = np.where(temperatures < 15, 15, temperatures)
clipped = np.where(clipped > 30, 30, clipped)
print(clipped[:2])
rounded = np.round(clipped)
unique_values, counts = np.unique(rounded, return_counts=True)
print(unique_values)
print(counts)
sorted_indices = np.argsort(temperatures, axis=1)
print(sorted_indices)