A barplot from two dataframes needs to be plottted in Python
- or -
Post a project like this520
€26/hr(approx. $29/hr)
- Posted:
- Proposals: 20
- Remote
- #3875974
- Awarded
Quick Graphic Designer + Animator + Video Editor + Photo Editor + Logo Designer + Autocad Designer
Sydney
Python | Data Analyst | Pandas | Seaborn | Matplotlib | Web Scraping | Automation
Ghandinagar
834169067849526608173235982581463563409867647690666663434349153213376027920672748827
Description
Experience Level: Expert
Hi there,
I have two dataframes, and out of them, I need to make a single barplot that contains the corresponding values into a single bar for both dataframes.
1) There are for example 3 groups
2) Each group has same variables with different values
3) Each value per group must be plotted within a single bar (Have a look at the bar attached)
4) Legends must be shown for each values and for each dataframe df1 and df2
5) The x-axis must contain group names
Here are dataframes.
df1 = pd.DataFrame({'A': [0.69, 0.68, 0.71],
'B': [0.71, 0.70, 0.72],
'C': [0.35, 0.41, 0.44],
'D': [0.83, 0.83, 0.85]},
index=['Model1', 'Model2', 'Model3'])
df2 = pd.DataFrame({'A': [0.74, 0.78, 0.75],
'B': [0.76, 0.77, 0.78],
'C': [0.8, 0.8, 0.75],
'D': [0.8, 0.8, 0.84]},
index=['Model1', 'Model2', 'Model3'])
If you don't understand clearly the instruction, write to me. You can eventually make the plot and show it to me. Thus, I will be able see whether you have understood the instructions or not.
Looking forward to hear from you
I have two dataframes, and out of them, I need to make a single barplot that contains the corresponding values into a single bar for both dataframes.
1) There are for example 3 groups
2) Each group has same variables with different values
3) Each value per group must be plotted within a single bar (Have a look at the bar attached)
4) Legends must be shown for each values and for each dataframe df1 and df2
5) The x-axis must contain group names
Here are dataframes.
df1 = pd.DataFrame({'A': [0.69, 0.68, 0.71],
'B': [0.71, 0.70, 0.72],
'C': [0.35, 0.41, 0.44],
'D': [0.83, 0.83, 0.85]},
index=['Model1', 'Model2', 'Model3'])
df2 = pd.DataFrame({'A': [0.74, 0.78, 0.75],
'B': [0.76, 0.77, 0.78],
'C': [0.8, 0.8, 0.75],
'D': [0.8, 0.8, 0.84]},
index=['Model1', 'Model2', 'Model3'])
If you don't understand clearly the instruction, write to me. You can eventually make the plot and show it to me. Thus, I will be able see whether you have understood the instructions or not.
Looking forward to hear from you
Ida H.
100% (12)Projects Completed
10
Freelancers worked with
12
Projects awarded
32%
Last project
3 Nov 2023
Denmark
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies