I would like to create a stacked area chart for the df below.
Aquisition_Channel Day_Since_Acquisition Total_Customers
Digital 7 10
Digital 14 12
Digital 21 16
Digital 28 20
Organic 7 32
Organic 14 40
Organic 21 41
Organic 28 45
Offline 7 23
Offline 14 30
Offline 21 46
Offline 28 55
This is what I have tried but it shows me for column: Day_Since_Acquisition a range of values between 0 and 28 however I would like to just use the unique values in this column on the x-axis instead of a range
df2 = pd.DataFrame(df, columns=['Aquisition_Channel', 'Day_Since_Acquisition', 'Total_Customers'])\
.set_index('Day_Since_Acquisition')\
.sort_values('Day_Since_Acquisition')
pt = pd.pivot_table(daf, columns=['Aquisition_Channel'], index=['Day_Since_Acquisition'], values=['Total_Customers'], fill_value=0)
pt = pt.cumsum()
pt.plot.area()
plt.show()

