pandas - factorplot with seaborn python -


i try plot factorplot seaborn here python code :

import numpy np import matplotlib.pyplot plt import matplotlib.dates mdates matplotlib import style import pandas pd import seaborn sns import io style.use('ggplot') #load dataset df2 dataframe df2 = pd.read_csv('c:/users/demonstrator/downloads/power.csv',delimiter=';') #drop nan rows df2 build df_no_missing   df_no_missing = df2.dropna().copy() df_no_missing.head() df_no_missing['depassement'] = np.where((df_no_missing['p_act_kw'] - df_no_missing['p_souscr']) < 0, 0, df_no_missing['p_act_kw'] - df_no_missing['p_souscr']) #build factorplot sns.factorplot(data=df_no_missing, x="timestamp", y="p_act_kw") 

it impossible view result process seems busy.


Comments