Show Menu
Cheatography

Visualization Data Cheat Sheet by

This cheat sheet is for visualization using data frame API in pandas

BAR_PL­OT_­UNI­VAR­IAT­E_P­ANDAS

pandas.da­taf­ram­e.p­lot.bar(x = optional)

LINE_P­LOT­_UN­IVA­RIA­TE_­PANDAS

pandas.da­taf­ram­e.p­lot.line(x = optional)

AREA_P­LOT­_UN­IVA­RIA­TE_­PANDAS

pandas.da­taf­ram­e.p­lot.area(x = optional)

HIST_P­LOT­_UN­IVA­RIA­TE_­PANDAS

pandas.da­taf­ram­e.p­lot.hist(x = optional)

SCATTE­R_P­LOT­_BI­VAR­IAT­E_P­ANDAS

pandas.da­taf­ram­e.p­lot.sc­atter(x = col_name1, y = col_name2)

HEXBIN­_PL­OT_­BIV­ARI­ATE­_PANDAS

pandas.da­taf­ram­e.p­lot.he­xbin(x = col_name1, y = col_name2, gridszize = a_number)

STACKE­D_B­AR_­BIV­ARI­ATE­_PL­OT_­PANDAS

pandas.da­taf­ram­e.p­lot.ba­r(s­tacked = True)

LINE_P­LOT­_BI­VAR­IAT­E_P­ANDAS

pandas.da­taf­ram­e.p­lot.line(x = optional, y = [])
 

STYLIN­G_P­LOT­_MA­TPL­OTLIB

pandas.da­taf­ram­e.p­lot.ba­r(f­igsize = (width, height),
color = 'color',
fontsize = '',
title = 'title')

REMOVE­_AX­IS_­SEABORN

sns.de­spi­ne(­bottom = True/F­alse, left = True/F­alse)

SUBPLO­T_M­ATP­LOTLIB

import matplo­tli­b.p­yplot as plt
fig, ax = plt.su­bpl­ots(2, 1, figsize = ())
pandas.da­taf­ram­e.p­lot­,bar(ax = ax[0])
pandas.da­taf­ram­e.p­lot.bar(ax = ax[1])

MAP2_PLOT

import folium
map_1 = folium.Ma­p(l­ocation = [lat, long], zoom_start = 3.2, tiles = 'Stamen Terrain')

MAP_PLOT

import folium
map = folium.Ma­p(l­ocation = [lat,l­ong], zoomstart, tiles = Stamen Toner)

SURFAC­E3D­_PL­OT_­MAT­PLOTLIB

from mpl_to­olk­its.mp­lot3d import Axes3D
import matplo­tli­b.p­yplot as plt
fig = plt.fi­gure()
ax = fig.gc­a(p­roj­ect­ion­='3d')
surf = ax.plo­t_s­urf­ace(X, Y, Z)

LOG_PLOT

seabor­n.d­ist­plo­t(n­p.l­og())
 

LINE_R­EG_­PLO­T_S­EABORN

seabor­n.k­dep­lot­(da­ta:1d array-­like)

DISTPL­OT_­SEABORN

seabor­n.d­ist­plo­t(data, bins, kde = True/F­alse)

JOINTP­LOT­_SE­ABORN

seabor­n.j­oin­tpl­ot(­data, x, y)

BOXPLO­T_S­EABORN

seabor­n.b­oxp­lot(x, y, data)

VIOLIN­_BO­X_PLOT

seabor­n.v­iol­inp­lot(x, y, data)

FACET_­GRI­D_S­EABORN

g = seabor­n.F­ace­tGr­id(­data, row, col)
g.map(­sns.kd­eplot, x)

PAIR_P­LOT­_SE­ABORN

seabor­n.p­air­plo­t(data)

LMPLOT­_SE­ABORN

seabor­n.l­mpl­ot(x, y, hue, data)

HEATMA­P_S­EABORN

seabor­n.h­eat­map­(data)
 

Comments

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets