Phân tích báo cáo tài chính bằng Python
Rohan Chatterjee
Risk Modeler
sns.set_style("whitegrid")
ax = sns.lineplot(data=current_ratio,
x="Year",y='current_ratio',
hue="company", alpha=0.7)
plt.xlabel("Year")
plt.ylabel("Current Ratio")

Biểu đồ này chứa quá nhiều thông tin trong không gian hẹp, gây rối mắt

Bước đầu là melt DataFrame để có dữ liệu theo thời gian.
DataFrame "chưa melt":
plot_df.head()

Bây giờ melt DataFrame
plot_df_melt = plot_df.melt(id_vars = ['company','Year'], var_name = "Ratio")

ax = sns.relplot(data=df_melt, x="Year",
y="value", hue="Ratio",
alpha=0.7,
col='company',
kind='line')
ax.set_ylabels('')
ax.set_xlabels('')


Phân tích báo cáo tài chính bằng Python