notes/pl/py/libfws/ml/pandas/features/visualization.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

31 строка
877 B
Plaintext

https://pandas.pydata.org/pandas-docs/stable/visualization.html
https://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.boxplot
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.plot.html
box-plots
https://pandas.pydata.org/pandas-docs/stable/visualization.html#box-plots
dfb = pd.DataFrame(np.random.randn(10,5)) # 10 vectors 5 el-s each
dfb.boxplot(
vert=False,
return_type='axes'
)
...
df.boxplot(by='name')
line-plots
s.plot(kind='line') is equivalent to s.plot.line()
df.plot(
subplots=True, layout=(2, 3), figsize=(6, 6), sharex=False
)
categorical
plt.plot(dfall['name'], dfall.drop(columns=['name']))
fig, axes = plt.subplots(nrows=1, ncols=2, figsize=(8, 4), sharey=True)
axes[0].plot(dfall['name'], dfall.drop(columns=['name']))
axes[1].plot(dfcpu['name'], dfcpu.drop(columns=['name']))
fig.suptitle('FX/LP min/median/max')