Skip to main content

All Questions

Tagged with
0 votes
1 answer
42 views

Plotting multivariable plot in seaborn using Pandas DataFrame

Reproducing the data frame as showed : dx = {'SEGM':[9, 8, 7, 6, 5, 4, 3, 2, 1, 0], 'YES':[4812, 2697, 2677, 1811, 1570, 1010, 418, 210, 115, 166], 'NO':[590, 1368, 2611, 2968, 3942, 3596, 2141, 1668, ...
Nabi Shaikh's user avatar
1 vote
0 answers
39 views

chart objects not showing on the chart using selection containing fields with converted columns from datetime data

I am using Altair to create visualisations based on a local csv file about WW1 bombing incidents.nI tried to make 2 charts: one shows all incidents in the same month, one shows all incidents in the ...
Terry563's user avatar
0 votes
0 answers
281 views

How can I create a custom decomposition tree chart in python

I want to create a decomposition tree chart in python but one that's slightly different than the one available in Power BI. The structure I want to create is very similar to the Power BI version, with ...
Prem's user avatar
  • 1
0 votes
1 answer
84 views

Relatively easy way to overlay a seaborn historigram with normal distribution plot [duplicate]

Have a dataframe for which I've created a histogram in Seaborn: import seaborn as sns sns.histplot(df, bins=100) I'm also able to create a pdf from its distribution: import scipy.stats as stats ...
Chris's user avatar
  • 1,633
1 vote
1 answer
68 views

How to build shell plots based on pandas dataframe?

I have the following dataframe of numbers of interactions between ligand-receptor pairs: d = {'ligand': ['B cells','CAFs','Malignant cells','T cells','TAMs','TAMs','TAMs','TAMs','TAMs','TAMs','TAMs','...
Yulia Kentieva's user avatar
0 votes
1 answer
46 views

multiple columns on x axis after a groupby

I have the following code that works well : df.groupby(['State', 'City']).Total_sale_amount.sum().plot.bar() I want the equivalent to use on a dataframe i got after doing a groupby on that same ...
gshep's user avatar
  • 50
0 votes
0 answers
44 views

rebuilding dataframe by moving values in rows and columns [duplicate]

I have a data frame idx bar Y count 0 1~3 0 140 1 1~3 1 257 2 4~8 0 33 3 4~8 1 117 4 gt8 0 13 5 gt8 1 36 I want to convert this dataframe into bar 0 1 0 1~3 140 257 1 4~8 33 117 2 gt8 13 ...
aaa's user avatar
  • 1
0 votes
1 answer
73 views

Adding alpha area (confidence interval) to sns pointplot

Assume a dataframe df = pd.DataFrame({"X" : [1, 1, 2, 2, 3, 3, 4, 4], "Model" : ["A", "B", "A", "B", "A", &...
thesecond's user avatar
  • 435
0 votes
2 answers
158 views

Looking for a way to visualize sequence data in Python

Suppose I have a Pandas dataframe which looks as follow: Event Type Start Time End Time A 1 3 B 2.5 5 C 9.5 11 A 6 9 I want to draw it as like: Note that it is possible for events of the same ...
lpounng's user avatar
  • 618
0 votes
1 answer
64 views

Python Datashader trying to superimpose images onto each other

I'm rather new to datashader and am doing this as an introductory project and I've hit a snag. I'm trying to plot the numbers from 1 to 10,000 in a spiral like the 3b1b video here, but I want the ...
Robertmg's user avatar
  • 117
2 votes
0 answers
97 views

Altair themes don't change default mark color

When you use an Altair theme that has a different color scheme than the default one, the color scheme is only used when the color channel is encoded. When it's not encoded, the chart is in the default ...
Ryan Brown's user avatar
0 votes
0 answers
72 views

Not able to run Dtale on root url

We have a requirement to run the multiple Dtale serives in one docker container. So we are planning to run each dtale service with a unique app-root and port. Below is my code looks like. import dtale ...
Gokul Adapa's user avatar
0 votes
0 answers
26 views

How do I create a stacked bar graph with Pandas and Plotly that is sorted by the total heights of the columns, not just the largest individual value?

I have a Django model that contains all the songs all users have added to the playlist of a service. I want to display the 20 most requested songs with a stacked bar chart, with colors showing the ...
Mellowy's user avatar
0 votes
2 answers
152 views

Format Annotations on Bar chart to include comma separator and $ sign. Matplotlib

I am trying to format my annotation bars to include a comma separator and $. However I'm having trouble doing so. I am new to Matplotlib. Here is my code: import pandas as pd from matplotlib import ...
mexicanRmy's user avatar
2 votes
0 answers
119 views

Empty Plot in Python Matplotlib, dont know why [duplicate]

I'm trying to plot some data, which I can easily print out. When I plot the data in any way a blank plot appears. I dont fully understand why this is happening as the dataframe is full of data, and ...
Trailblazerone's user avatar

15 30 50 per page
1
2 3 4 5
57