Questions tagged [seaborn]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Scatter matrix takes a long time to process, why?

I'm performing two scatter matrixes on two machines launching on one sns.pairplot and on the other scatter_matrix of pandas. I ...
0
votes
0answers
9 views

Why is seaborn giving me this error : urlerror: <urlopen error [errno 11001] getaddrinfo failed> [closed]

I am finding it difficult to do anything importing seaborn
1
vote
1answer
18 views

How should I improve my Vectorized Gradient descent linear regression model?

I wrote a vectorized Gradient descent implementation of the linear regression model. The Dataset looks something like: It's Not Working properly as I am getting negative R Squared error I don't ...
0
votes
0answers
83 views

How to interpret pairplot?

There are 2 sns.pairplot, tell me how to interpret them. As I understand it, sns.pairplot allows us to look at the diagonal distribution of these signs, and on the non-diagonal linear relationship ...
0
votes
0answers
16 views

Plot line at X axis based on Values of Y axis - maplotlib/seaborn

I have made a dist plot and now I want to plot a line on the x-axis based on the value of the y-axis. ie. I want to plot a line at various maximas/peaks and also shade a portion of the x-axis between ...
0
votes
0answers
20 views

How to analyzes seaborn's regplot of features from kaggle's houses prices and decide to remove a specific feature?

As a machine learning beginner, I am trying my best to, to solve kaggle's houses prices competition. I am doing pretty well. Some of the fields are confusing. The data set contains about 80 features,...
1
vote
0answers
41 views

Two different results from seaborn and matplotlib for a kde plot. What's the reason?

I'm plotting kde plots for a set of data with seaborn and scipy.stats.gaussian_kde: My understanding is that under the hood, seaborn uses scipy (see here). It also seems as though the bandwidth ...
2
votes
1answer
34 views

Hierarchical Clustering: Extract observations from large heatmap

I'm currently trying to visualize a large data set as heat map. That in itself works smoothly but I struggle with gaining insights from interestingly looking clusters. Specifically, I have two ...
2
votes
2answers
104 views

Best way to visualize huge amount of data

I have a data set of around 3M row. I has only 2 category (category- 2:1 ratio). Now i want to visualize(scatter plot) it's distribution to understand can the data linearly separable or not(In order ...
0
votes
1answer
128 views

How to create correlation matrix but with only part of the rows?

I would like to have correlation matrix like this one, but with only 3 bottom rows but all the columns. How can I generate it? ...
2
votes
0answers
65 views

Plotting facetgrid in subplot for IRIS dataset

I'm trying to plot 6 selected pair subplots with the combination of facetgrid of seaborn and scatter plot from matplotlib. I'm getting plot, but subplots remains empty whereas facetgrid gets plotted ...
1
vote
1answer
38 views

How to put the variable names of pandas data frame on Diagonal of Seaborn PairGrid?

The given below code is not working now(earlier it was working) to put the column names on the diagonal of Seaborn PairGrid. ...
4
votes
2answers
3k views

seaborn heatmap not displaying correctly

for some reason, my heatmap is not displaying correctly anymore! It was working just fine even with 6 classes. Since the last time I used it, I've installed many packages ( including plotly), I don't ...
0
votes
1answer
760 views

How do I change the marker edge color of a seaborn relplot?

I am trying to output a complex facet grid plot in the format of the following image: But the problem is that I don't want the edge color of the markers to be white, I want it to be the face color. ...
1
vote
1answer
21 views

Why do seaborn.dist and pyplot.hist generate two different looking histograms on the same data?

I'm looking at telecom customers data. Two of the variables I'm looking at currently are: Monthly Charges - The total amount charged to the customer monthly. Is Senior Citizen - Whether the customer ...
0
votes
1answer
22 views

How to barplot output of pandas.describe() from multiple datasets

I'm trying to compare the differences and similarities between 10 dataframes. I have decided to df.describe() each dataframe in turn and accumulate the results into a new dataframe. ...
0
votes
0answers
217 views

How to fix “Centering cmap, with missing values (nan), on a seaborn heatmap”

I'm trying to plot a seaborn heatmap centered on 0. So I can see the divergence of the values on the positive and negative range. The problem is that near 0 the values change too smoothly, on the ...
1
vote
2answers
213 views

Seaborn Violin plot error No loop for unfunc add

I'm trying to plot a violin plot with a split based on Sex ( like in the fourth example in the doccumentation but with Sex) I can produce a categorical scatter plot and split it by Sex. However, when ...
1
vote
1answer
160 views

Seaborn barchart for frequency of data

I'm trying to plot a bar chart to represent the frequency of two variables (Dead and Alive) in my test and training data. I want it to look like the second example described in the documentation (...
1
vote
1answer
168 views

Seaborn subplots massive whitespace

I'm trying to plot three heatmaps in a vertical column using Seaborns subplot method. ...
0
votes
0answers
104 views

Meaning of confidence interval in seaborn barplot

I'm working with titanic data.I'm using seaborn barplot to understand the data so what this line means?I know it's 95% confidence interval,but how to understand this graph some of the line is long ...
0
votes
1answer
95 views

Making Inference from a Correlation Heatmap

I have constructed a Heatmap of my dataset for visualization. I have searched on various sites regarding what can I infer from the heatmap and I am unable to get any clear understanding from them. I ...
0
votes
1answer
1k views

How to remove outliers using box-plot?

I have data of a metric grouped date wise. I have plotted the data, now, how do I remove the values outside the range of the boxplot (outliers)? All the ['AVG'] data is in a single column, I need it ...
1
vote
0answers
29 views

Expand Seaborn FacetGrid layout horisontally

I have the following code that shows 10 dataframe column values separated by categories PREFERENCE = GOOD and PREFERENCE = BAD. Is it possible to expand the layout horisontally so that instead of 2 ...
4
votes
2answers
50 views

Which plot to use for data spanned on multiple years?

I've a dataset of - Number of accidents that happens in each state. The dataset spans from 2001 to 2014. Which plot should I use to represent the information - number of accidents in each state per ...
2
votes
2answers
85 views

How to deal with millions or rows of data for analysis/visualization purpose [closed]

I have data in 2 tables in Sql server. First table has around 10 million rows and 8 columns. Second table has 6 million rows and 60 columns. I want to import those tables into a Python notebook ...
1
vote
0answers
238 views

How to create a heatmap inside a polar chart [closed]

I would like to build something like this. Creating a polar chart isn´t an issue, but i have no idea how to implement the round areas and the color gradients into the plot.
1
vote
1answer
136 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 ...
0
votes
0answers
12 views

Using seaborn styles and custom matplotlibrc simultaneously

I would like to use the seaborn styles, but also keep my matplotlib settings. For example, I would like larger default label ...
0
votes
0answers
209 views

Why is my Seaborn distplot creating bouncing lines instead of smooth lines?

I'm using Jupyter notebook working on the Kaggle Titanic dataset, trying to create a seaborn distplot to compare the 'Sex' variable (0 is male, 1 is female) with the 'Survived' variable (Survived is ...
1
vote
0answers
24 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: ...
2
votes
2answers
7k 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
637 views

How to set limits of Y-axes in countplot?

df in my program happens to be a dataframe with these columns : ...
0
votes
1answer
957 views

seaborn regplot does not show the line

Question Why lmplot show the line but regplot does not? lmplot ...
1
vote
1answer
7k 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 ...
2
votes
0answers
422 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: ...
3
votes
1answer
3k 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
799 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 ...
2
votes
1answer
111 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 ...
1
vote
1answer
2k 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 ...
4
votes
3answers
2k 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 ....
2
votes
1answer
93 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
753 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, ...
6
votes
1answer
27k 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
300 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: ...
1
vote
2answers
15k views

How to include labels in sns heatmap

I got this matrix ...
1
vote
1answer
4k 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: https://python-graph-gallery.com/270-basic-bubble-plot/ ...
0
votes
3answers
3k views

Unable to generate error bars with seaborn

Can you please help me add error bars to my graph? This is the csv: ...
1
vote
1answer
4k 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: ...
5
votes
1answer
4k 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 ...