【发布时间】:2020-07-24 11:43:21
【问题描述】:
我有两个dataframes。我知道两者的时间范围并不完全相等。一个是电晕对我的操作的影响。并且效果在疫情爆发后开始显现。
下面是我的代码snippet:
plt.figure(figsize=(10,10))
ax = covid19_df[covid19_df.countriesAndTerritories == "Germany"]["cases"].plot(label="Reported Cases")
ax1 = covid19_df[covid19_df.countriesAndTerritories == "Germany"]["deaths"].plot(label="Deaths")
df["NO OF CAPTURED FARMERS"].plot(label= "Number of farmers")
plt.ylabel("Number of cases", fontsize=15, labelpad=20)
plt.xlabel("Dates", fontsize=15, labelpad=20)
plt.legend()
sns.despine()
这是当前的情节:
不知道为什么蓝线不显示
【问题讨论】:
标签: python dataframe matplotlib data-visualization