Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

facet grid, barplot, catplot

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline # not for Power BI

g = sns.catplot(x="alive", col="deck", col_wrap=4,
                data=titanic[titanic.deck.notnull()],
                kind="bar", height=2.5, aspect=.8,ci=None,sharey=False)
g.set_axis_labels("Total bill ($)", "Tip ($)")
g.set_titles(col_template="{col_name} patrons", row_template="{row_name}")
plt.show()

# use col_wrap to configure the grid in case of multiple levels in col
Comment

PREVIOUS NEXT
Code Example
Python :: Python simple number formatting samples 
Python :: for loop practice problems python 
Python :: Python - How To Convert String to ASCII Value 
Python :: speechapi 
Python :: buble short 
Python :: tadjust margines automatically matplotlib 
Python :: python class optional attributes 
Python :: display list 
Python :: python programming online editor 
Python :: Delete all small Latin letters a from the given string. 
Python :: codegrepper is cool 
Python :: for x in range(1, 10, 3): print(x) 
Python :: pyqt fixed window size 
Python :: Third step creating python project 
Python :: pubmed database python 
Python :: does pygame work on python 3.10.1 
Python :: adding if statements in pyhton with tuple 
Python :: init matrix in numpy 
Python :: pandas add prefix to some range of columns 
Python :: Groupby geek link 
Python :: sum of two diagonals in matrix 
Python :: add constant to all values of columns in dataframe python 
Python :: <function chr(i, /)> error in python 
Python :: django get without exception 
Python :: jama python rest api 
Python :: python cgi get raw post data 
Python :: coercion python 
Python :: paschat opposite sanskrit 
Python :: python if dataframe has at least one row 
Python :: passport ocr python 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =