Questions tagged [seaborn]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
18 views

Seaborn Histogram: Unexpected gap at center of data

I'm going through this YouTube series on simulation by The Coding Train. I'm trying to graph some filtered random numbers, but seaborn is leaving an odd gap in the very middle of the histogram. My ...
0
votes
0answers
7 views

Opposite results using statsmodels and seaborn regplot

I use regplot using the following code: sns.regplot(x = "Year", y = "Data_Value", data = NOAA_TMAX_s ); and I obtain the following figure: showing clearly that ...
-2
votes
0answers
24 views

i want to plot with python that i saw in picture [closed]

I tried this. and i want to do something like this picture with python , pandas , Matplotlib Not with R language :
0
votes
0answers
36 views

Getting 'str' object has no attribute 'get' for seaborn [closed]

I am trying to plot a simple lineplot in seaborn using the Country/Region column as hue. The code I am using is as follows: ...
1
vote
0answers
21 views

Plotting heatmap seaborn dilemma

First i want to tell you that i'm trying to create a model in the right steps, which needs data exploration, data preprocessing (AFTER splitting the data into train/test), etc. For the part of data ...
1
vote
2answers
29 views

How can I find to starting point of skewed data in python?

I have a list like this, ...
-1
votes
1answer
20 views

Meaning of 'hue" in seaborn [closed]

I know what "hue" does a little I'm studying kaggle and the image is about bike sharing demand analysis What I want to know is shouldn't the second images's sum of each point's y axis be the first ...
1
vote
1answer
40 views

What does 'lm' mean in the lmplot() in seaborn?

I was learning seaborn, but could not find the full name of lmplot. What is 'l' and 'm' in the name 'lmplot'.
1
vote
1answer
308 views

Seaborn distplot and KDE data confusion

I'm running through a tutorial to understand the histogram plotting. Given the seaborn tips dataset, by running the sns.distplot(tips.tip); function the following ...
0
votes
1answer
32 views

Why am I getting misaligned values while plotting heatmaps using seaborn?

While plotting heatmaps using seaborn, the numbers are getting printed on the boundary of the heatmap (Please see the image attached). I have already plotted heatmaps many times using the same code. ...
0
votes
0answers
28 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 ...
1
vote
1answer
24 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
306 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
19 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
45 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
145 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 ...
3
votes
2answers
60 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
154 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 ...
1
vote
1answer
250 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
129 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
125 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. ...
7
votes
3answers
10k 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
2k 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. ...
2
votes
1answer
80 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
38 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
374 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
433 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
333 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
352 views

Seaborn subplots massive whitespace

I'm trying to plot three heatmaps in a vertical column using Seaborns subplot method. ...
0
votes
0answers
184 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
226 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
4k 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
44 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
52 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
218 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
355 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
307 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
18 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
299 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
32 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: ...
3
votes
2answers
12k 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
898 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
1k views

seaborn regplot does not show the line

Question Why lmplot show the line but regplot does not? lmplot ...
1
vote
1answer
10k 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
547 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: ...
4
votes
1answer
4k 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
1k 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
2answers
126 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
4k 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 ....