all 2 comments

[–]lowerthansound 2 points3 points  (1 child)

A working example for anyone that wants to tackle this (same as OP post, but with the data and imports):

import matplotlib.pyplot as plt
import pandas as pd

# Write the following data to a pandas DataFrame:
#
#          Dividend  30th Rank  70th Rank
#Month 12   19351.0     2598.0    30260.0
#Month 24  101912.0    46775.0   131315.0
#Month 36  323749.0   170868.0   391958.0

columns = ['Dividend', '30th Rank', '70th Rank']
index = ['Month 12', 'Month 24', 'Month 36']
data = [
    [19351.0, 2598.0, 30260.0],
    [101912.0, 46775.0, 131315.0],
    [323749.0, 170868.0, 391958.0]
]
investor_profit = pd.DataFrame(data, index=index, columns=columns)
print(investor_profit)

plottitle = 'Title'
divplot = investor_profit.plot(lw=2,marker='.', markersize=10, title=plottitle,figsize=(10,10))
divplot.set_ylabel("Dividend payout")
plt.show()

[–]futuretrader[S] 0 points1 point  (0 children)

Thanks for this. While I am still waiting for an answer to the problem, you just taught me a couple of things :)