how to plot duplicated columns on python pandas
Question:
Answers:
The following code generates the following picture.
import pandas as pd
import matplotlib.pyplot as plt
import seaborn
data = pd.DataFrame({"Year": [2018, 2018, 2018, 2019], "Month": [3, 4, 5, 3], "ORDNUM": [4459, 2332, 1224, 4322]})
seaborn.relplot(data=data, x="Month", y="ORDNUM", hue="Year")
plt.show()
The following code generates the following picture.
import pandas as pd
import matplotlib.pyplot as plt
import seaborn
data = pd.DataFrame({"Year": [2018, 2018, 2018, 2019], "Month": [3, 4, 5, 3], "ORDNUM": [4459, 2332, 1224, 4322]})
seaborn.relplot(data=data, x="Month", y="ORDNUM", hue="Year")
plt.show()