Код: Выделить всё
import matplotlib.pyplot as plt
import seaborn as sns
# Loop to create and display histograms with a larger figure size
for i in df.select_dtypes(include="number").columns:
plt.figure(figsize=(12, 6)) # Adjust the width and height as needed
sns.histplot(data=df, x=i)
plt.title(f'Distribution of {i}') # Add a title to each plot for clarity
plt.show()

Подробнее здесь: https://stackoverflow.com/questions/791 ... r-notebook
Мобильная версия