Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Plot kdeplot, lineplot, scatterplot in seaborn

r = len(numerical_columns[1:])

fig, axs =plt.subplots(r,2, constrained_layout=True, figsize=(18,4*r))

for j,i in enumerate(numerical_columns[1:]):
    sns.kdeplot(data=df, x=i, y="Rented Bike Count", fill=True, ax = axs[j,0] ).set(title="kdeplot")
    # sns.lineplot(data=df, x=i, y="Rented Bike Count", ax=axs[j,1]).set(title="lineplot")
    sns.scatterplot(data=df, x=i, y="Rented Bike Count", ax=axs[j,1]).set(title="scatterplot")
    # plt.suptitle(f'{col.title()}',weight='bold')
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: pygame image get height 
Python :: python display text in label on new line 
Python :: add last item of array at the first index of the array python 
Python :: how to python string up 
Python :: signup class 
Python :: how to save string json to json object python 
Python :: python find cells with na 
Python :: decimal hour to hour minute python 
Python :: python read file between two strings 
Python :: sns.savefig 
Python :: python how to locate and fill a specific column null values 
Python :: tensorflow conv2d 
Python :: python combinations function 
Python :: django pass list of fields to values 
Python :: tkinter standard dialogs message 
Python :: what is an object in python 
Python :: python infinite l00p 
Python :: code pandas from url 
Python :: how draw shell in python 
Python :: executing a python script interactively 
Python :: python toupls 
Python :: re.search 
Python :: geopandas dataframe to ogr layer 
Python :: color module python 
Python :: discord.py send message to channel with mutiple id 
Python :: python prevent print output 
Python :: setup mongodb database with django 
Python :: groupbycolumn 
Python :: knn imputation in r 
Python :: how to set environment variable in pycharm 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =