What i would like to do is creating displots in a way that each pair of two occupies a row. So, i used these lines of codes:
columns = list(cols) # cols created from dataframe.columns
sns.set(rc = {"figure.figsize": (12, 15)})
sns.set_style(style = "white")
for i in range(len(columns)):
plt.subplot(10, 2, i + 1)
sns.displot(data[columns[i]], rug = True)
However, the result is a runtime error and strange shaped plots. The result
Does anyone know what i am doing wrong? Thanks
