grouped-bar-chart Questions

9

Solved

How to plot multiple bars in matplotlib, when I tried to call the bar function multiple times, they overlap and as seen the below figure the highest value red can be seen only. How can I plot the m...
Calif asked 11/1, 2013 at 1:48

5

Solved

I have a DataFrame looking like this: amount price age A 40929 4066443 B 93904 9611272 C 188349 19360005 D 248438 24335536 E 205622 18888604 F 140173 12580900 G 76243 6751731 H 36859 3418329 I 29...
Rhaetian asked 12/6, 2014 at 11:22

10

Solved

So here is how my data set looks like : In [1]: df1=pd.DataFrame(np.random.rand(4,2),index=["A","B","C","D"],columns=["I","J"]) In [2]: ...
Caterpillar asked 1/4, 2014 at 13:22

4

Solved

I have a little pandas dataframe that looks like this: import pandas as pd data = {'Word': ['drink', 'cherry', 'berry', 'plum', 'crisp', 'spices'], 'Percentage1': [18.166654, 13.498262, 9.810123,...
Ammadas asked 4/12, 2018 at 10:43

4

Solved

The goal here is to create a grouped bar plot, not subplots like the image below Is there a simple way to create a grouped bar plot in Python? Right now I get separate bar plots, instead of separat...
Errecart asked 13/12, 2017 at 15:6

1

I want to add percentage on the top of bars according to the hue. That means all the red and blue bars are equal to 100% respectively. I can make the blue bars equal to 100%, but the red bars can't...

6

Solved

Given the following count plot how do I place percentages on top of the bars? import seaborn as sns sns.set(style="darkgrid") titanic = sns.load_dataset("titanic") ax = sns.coun...

1

I'm being trying to convert my plots to Seaborn and I'm having an issue with a multiple barplot that I have. The data is a list of lists, like so: raw_data = [[47.66773437098896, 47.58540882656602...
Crossexamine asked 30/11, 2018 at 16:54

2

Solved

I have a table in a pandas DataFrame named df: +--- -----+------------+-------------+----------+------------+-----------+ |avg_views| avg_orders | max_views |max_orders| min_views |min_orders | +-...
Maggee asked 4/11, 2016 at 10:22

1

Solved

I've been working with seaborn.catplot in order to have a bar plot (data sample bellow) adding up the values in a counts column for a set of reasons, separated by a group of companies: sns.catplot...
Emanuel asked 7/10, 2019 at 9:54

3

Solved

The following code only shows the main category ['one', 'two', 'three', 'four', 'five', 'six'] as the x axis labels. Is there a way show subcategory ['A', 'B', 'C', 'D'] as secondary x axis labels?...
Tutor asked 21/4, 2017 at 14:56

2

Solved

I have a pandas dataframe that looks like this: class men woman children 0 first 0.91468 0.667971 0.660562 1 second 0.30012 0.329380 0.882608 2 third 0.11899 0.189747 0.121259 How would I create ...
Hillard asked 6/8, 2016 at 19:16

2

Solved

I am using the following code to plot a bar-chart: import matplotlib.pyplot as pls my_df.plot(x='my_timestampe', y='col_A', kind='bar') plt.show() The plot works fine. However, I want to impro...

1

Solved

I have pandas dataframe, one index(datetime) and three variables(int) date A B C 2017-09-05 25 261 31 2017-09-06 261 1519 151 2017-09-07 188 1545 144 2017-09-08 200 2110 232 2017-09-09 292 2391 32...
Instil asked 27/3, 2018 at 6:7

1

Solved

I'm using seaborn and pandas to create some bar plots from different (but related) data. The two datasets share a common category used as a hue, and as such I would like to ensure that in the two g...
Ferric asked 12/9, 2017 at 9:58

1

Solved

I have a Pandas dataframe that has a couple of group columns like below. gr1 grp2 variables lb m ub A A1 V1 1.00 1.50 2.5 A A2 V2 1.50 2.50 3.5 B A1 V1 3.50 14.50 30.5 B A2 V2 0.25 0.75 1.0...
Chiapas asked 25/8, 2017 at 5:48

2

Solved

I have the following dataframe, where pd.concat has been used to group the columns: a b C1 C2 C3 C4 C5 C6 C7 C8 0 15 37 17 10 8 11 19 86 1 39 84 11 5 5 13 9 11 2 10 20 30 51 74 62 56 58 3 88 2 ...
Houseman asked 29/9, 2016 at 15:50

1

Solved

I have the following dataframe which I have obtained from a larger dataframe which lists the worst 10 "Benchmark Returns" and their corresponding portfolio returns and dates: I've manage...
Championship asked 27/7, 2016 at 9:43

1

Solved

I'm trying to produce a bar chart with all the observations in my DataFrame, which looks like this: import pandas as pd data = {0: [52, 52, 52, 45, 0, 0], 1: [49, 52, 52, 0, 0, 0], 2: [48, 52, 5...
Horoscope asked 11/5, 2016 at 23:8

3

I'm trying to make a grouped bar plot in matplotlib, following the example in the gallery. I use the following: import matplotlib.pyplot as plt plt.figure(figsize=(7,7), dpi=300) xticks = [0.1, 1....
Decorum asked 22/7, 2012 at 4:30

2

Solved

I am trying to plot a grouped bar chart like the one in the figure below. I found the errorbar() function, but so far I cannot figure it out how to make it. Here is my code. Y = [0.9322225 0.8622...
Ferromagnesian asked 10/1, 2013 at 11:1

2

Solved

I would like to know how to get 9 grouping bar plot (3x3) together. My CSV: data <- read.csv("http://pastebin.com/raw.php?i=6pArn8GL", sep = ";") The 9 plots should be group...
Gather asked 25/6, 2013 at 17:19
1

© 2022 - 2024 — McMap. All rights reserved.