Questions tagged [seaborn]

Seaborn is a statistical data visualization library for Python.

Filter by
Sorted by
Tagged with
2
votes
1answer
1k views

Scatter Plot with Conditions

Suppose I have a data frame name = ['A', 'B', 'C'] score = [2,4,6] I want to create a scatter plot with the following conditions, color the bubble as green if ...
1
vote
0answers
52 views

How to draw diagram like this one (errorsbar)

I would like to draw a graph that looks like this one from: The closest I have come is this graph: by this code: ...
5
votes
2answers
39k views

How to show percentage (text) next to the horizontal bars in matplotlib? [closed]

I am using seaborn's countplot to show count distribution of 2 categorical data. Fine it works but I want the percentages to show on top of the bars for each of the plot. Please how do I do it? ...
0
votes
1answer
2k views

How to set limits of Y-axes in countplot?

df in my program happens to be a dataframe with these columns : ...
0
votes
2answers
3k views

seaborn regplot does not show the line

Question Why lmplot show the line but regplot does not? lmplot ...
13
votes
4answers
31k views

Meaning of 'hue" in seaborn barplot

Seaborn barplot has three parameters. x, y, hue : names of variables in data or vector data, optional Question What is hue? It seems the attribute to plot but why it is called "hue" because when ...
3
votes
0answers
881 views

Seaborn lmplot hue plotting error

I am trying to colour the points on an lmplot by a categorical variable contained within a column of a DataFrame and I am getting the following error: ...
10
votes
1answer
9k views

What is the difference between regplot and lmplot in seaborn?

Seaborn library in python suggests to use either lmplot or regplot to visualise a regression between two variables. What is the difference between the two plots ? The result I was able to get are ...
0
votes
1answer
3k views

What is the concept of error bars in barplots in seaborn library?

I am using seaborn library to perform EDA on a dataset having categorical variables. I am using barplot function and in that there are some black bars which I guess are error bars as I read in ...
3
votes
2answers
311 views

Residual plots: why do we want to know the error?

The residual plot represents the error between the actual value. Y-axis: residuals X-axis: the predictor variable or fitted values. Why do we want to know the error, what benefits us in getting the ...
2
votes
1answer
10k views

How to extract numerical data from a matplotlib scatter plot in python?

I have a scatter plot with about 19,000 data points. By visual inspection, I noticed some points for which I want to look at the corresponding numerical data from the data frame (basically a subset of ...
9
votes
3answers
6k views

Can we remove features that have zero-correlation with the target/label?

So I draw a pairplot/heatmap from the feature correlations of a dataset and see a set of features that bears Zero-correlations both with: every other feature and also with the target/label ....
3
votes
1answer
239 views

What's an efficient way to plot many features for EDA in python?

I'm trying to visualize data for exploratory data analysis motivated by visualizing multiple scatterplots of features simultaneously, similar to this question. But I quickly run into problems when ...
1
vote
1answer
1k views

Why Pair plot is taking up the target variable into consideration?

I am working on Haberman's cancer survival data set. I tried to visualize the pair plot with features as AGE, Op_Year, ...
11
votes
1answer
74k views

How to deal with TypeError: ufunc 'isnan' not supported for the input types [closed]

I have dealt with all the Nan values in the features dataframe, then why I am still getting this error? ...
1
vote
0answers
378 views

Problem with x axis on swarmplot and added line with seaborn

I'm trying to add custom lines to seaborn swarmplot (based on this answer) and it seems that x axis is wrongly scaled. Data preparation: ...
9
votes
1answer
70k views

How to include labels in sns heatmap

I got this matrix ...
2
votes
1answer
5k views

Bubbleplot with seaborn

Is there someway to create a bubble plot with seaborn? I already know how to do it with Matplot lib, as in this tutorial. ...
1
vote
4answers
12k views

Unable to generate error bars with seaborn

Can you please help me add error bars to my graph? This is the csv: ...
3
votes
1answer
7k views

How can I make seaborn do PairPlot such that it wraps around?

I'm trying to do some PairPlots using seaborn, so I can compare a bunch of features against the label I'm trying to model. There are a bunch of features though (~50). So I'm basically doing: ...
7
votes
1answer
9k views

How can I change the transparency of a histogram plot in Seaborn using Pairgrid?

I'm using the Kaggle Titanic dataset. One feature is "Embarked", the city the passenger embarked from. The survival rate appears to correlate with it, but I'm worried it may just be correlated with ...
2
votes
2answers
956 views

What's the easiest way to quickly plot several features simultaneously for new data?

I'm starting a very beginner tutorial for DS/ML. One of the first things to do is to poke at the data they gave me. After doing the typical head() and describe() in pandas, I want to look more ...
5
votes
1answer
8k views

Stacked time series plot in python

In pandas I can set the date as index, and then run df.plot() to see a line chart. How do I make that line chart stacked as in the picture below?
1
vote
0answers
179 views

Pandas df - FacetGrid - Need help with plotting [closed]

Let's say I have a df with the below columns ...
1
vote
0answers
1k views

How to plot prediction intervals in seaborn tsplot?

I am plotting a group of time series plots with CI's in seaborn using tsplot: These were produced from 10 traces each: The confidence bars shown (99% confidence) appear to be the CI's for the mean. ...
0
votes
1answer
347 views

rectangular markers in bubble plot (Python)

I would like to make a 'bubble' plot, but with rectangular markers. Is it possible to do this in Python? On x-axis should be the day of the week (Mon, Tue, Wed,...), on y-axis - counts, how many ...
1
vote
1answer
361 views

Create continous plot using matplotlib/seaborn with specific hue [closed]

df.head()= day SBP exercise 0 146.0 False 1 149.0 False 2 146.0 True 3 148.0 False 4 149.0 False 5 149.0 False i am looking to plot <...
1
vote
1answer
231 views

How to better represent three sets of categorical data?

Given three set of data with categorical integer x-axis with the same range (0-10): ...
3
votes
1answer
9k views

Checking for skewness in data

I have a data frame consisting of some continuous data features. I did a kde plot of the features using seaborn kdeplot functionality which gave me a plot as shown below : How do I interpret this ...
6
votes
1answer
2k views

How does Seaborn calculate error bars when using estimators other than the arithmetic mean?

If I create a barplot using Seaborn and specify the geometric mean or the median as the estimator, does Seaborn know to use the appropriate standard error formula to create error bars?

1
2