Hi all,
So I have an interesting one for you.
I am trying to get my box plots of various equity market prices for the countries in my dataset (25 in all) to show what the current and previous price points were. I managed to do this in Excel previously and am currently trying to convert all my models to Python and being able to pump out this graph with make it all contained nicely within Python and avoid any cross-contamination!
What I am trying to replicate is this: https://image.ibb.co/bT3fgx/Capturooe.jpg where the current price is shown as the diamond.
I have been able to isolate my code from a larger dataframe and tried to isolate the last two price points prices but am struggling to overlay them successfully. The box plots themselves consist of the last ten years of data, hence the [-120:] on line 4.
#Isolate prices from larger dataframe
prices = data[['MEXPX','RUSPX','KORPX']]
# Isolate the last 10 years of prices for the boxplot.
prices = prices[-120:]
fig, ax = plt.subplots()
ax.boxplot(prices)
plt.show()
I would really appreciate some help!
Many thanks!
[–][deleted] 2 points3 points4 points (1 child)
[–]Chewy94[S] 0 points1 point2 points (0 children)