Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 display graph in columns and rows
for col in df[['age','num1','num2','num3','num4']]:
    grid = sns.FacetGrid(data=df,hue='predictor').map(sns.kdeplot,col)
As per above code, I am able to generate the graph but it shows all the graphs in one column.

How can I break into eg. 2 rows and 3 columns?

scidam wrote Jul-02-2019, 03:32 AM:
Please post all code, output and errors (in it's entirety) between their respective tags. I did it for you this time, Here are instructions on how to do it yourself next time.

i can help you
Yoriz wrote Jul-07-2019, 10:09 PM:
Email address removed
scidam wrote Jul-02-2019, 12:26 PM:
According to forum rules
we usually frown on answering a question in private messages. It would be better if you post answer to the question here, if you know it.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to display percentage above the bars in bar graph? WhatsupSmiley 0 349 Mar-31-2020, 07:21 PM
Last Post: WhatsupSmiley
  read_csv error and rows/columns missing karlito 9 592 Nov-11-2019, 06:48 AM
Last Post: karlito
  Drop rows if a set of columns has a value dervast 1 364 Sep-12-2019, 04:18 PM
Last Post: sd_0912
  Dropping all rows of multiple columns after the max of one cell Thunberd 2 948 Jun-01-2018, 10:18 PM
Last Post: Thunberd
  Get rows with same value from dataframe of particular columns angelwings 1 946 Apr-11-2018, 02:40 AM
Last Post: scidam
  summing rows/columns more quickly jon0852 3 1,013 Feb-12-2018, 02:24 AM
Last Post: ka06059
  Stack dataframe columns into rows klllmmm 0 1,393 Sep-03-2017, 02:26 AM
Last Post: klllmmm

Forum Jump:

Users browsing this thread: 1 Guest(s)