Show Menu
Cheatography

Python Data Science Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Dataframe

.drop
Supprimer colonne ou ligne
.drop_­dup­licates
Supprime ligne en double
.dupli­cated
Boolean si ligne déjà existante
Affichage des colonnes
pd.set_option
displa­y.m­ax_­col­umns, X
 

Seaborn

countplot
histogram catego­rical
regplot
scatter plot
(x,y,h­ue,­data)

Pyplot

figure( figsiz­e=(­w,h))
Definit taille du schema
plt.bar
x= catego­rical y= numerical
plt.xticks
names= renommer les ticks