I am sure this is simple but I struggle with plotting charts for this dataframe.
I have a pandas dataframe with multiple columns of which three columns are Gender, Age, Balance
I want to plot two lines with x-axis = Age, y-axis = Balance and two line in a single charts one for Male and Female based on Balance values for the Age.
In excel, I would pivot and show line chart, which looks as follows
source https://stackoverflow.com/questions/75749138/pandas-plot-line-chart-of-two-columns-based-on-grouping-in-third-column
Comments
Post a Comment