Questions tagged [seaborn]

Seaborn is a statistical data visualization library for Python.

Filter by
Sorted by
Tagged with
0 votes
1 answer
54 views

What is the difference between kdeplot's "cut" and "clip" parameters?

In Seaborn's kdeplot, is there a semantic difference between the cut and the clip parameters?...
Evan Aad's user avatar
  • 101
0 votes
0 answers
8 views

What do the areas under the graphs in a `kdeplot` mean when several graphs are drawn simultaneously from the same dataframe?

Suppose I have a dataframe documenting the offering prices in USD of a certain product in a certain market at a certain time. The product is manufactured by one of two manufacturers: ...
Evan Aad's user avatar
  • 101
0 votes
0 answers
13 views

Visualizing three parameters dataset, in which parameters are sub-group of one another

I am trying to represent air quality for zones within a city. Initially, based on various factors zones were classified into four exposure categories (1,2,3,4).Those four categories were further sub-...
joseph_k's user avatar
  • 101
0 votes
2 answers
19 views

Unfamiliar aspect on box plot

I am learning python and I am practicing with a project using a dataset. I created a box plot using seaborn's catplot only using the arguments data,x,y,and kind. There is something on the box plot (...
notsimplelogic's user avatar
0 votes
3 answers
86 views

Heatmap not respecting the color bounds

For the following dataframe of a chi2 correlation study, i started to plot a heatmap: ...
Guilherme Raibolt's user avatar
0 votes
0 answers
23 views

Varying the axes of a seaborn displot to save space

I used the code below to generate the image attached to this question: ...
Zorgoth's user avatar
  • 133
0 votes
0 answers
165 views

Seaborn displot with labels on every set of axes?

I used the code below to create the image attached to this question. There are a couple things I don't like about the result. One is that it consumes a huge amount of vertical space, all because a ...
Zorgoth's user avatar
  • 133
0 votes
0 answers
44 views

Combining Latitude Longitude Data to make Polar Stereographic Plot

I have two 896 row x 608 column pandas dataframes representing latitude and longitude positions of a polar stereographic grid. Combining these seems easy enough to make a single table, but I'm not ...
Socorro's user avatar
  • 91
0 votes
2 answers
413 views

Why does seaborn plot my boxplots like this?

I'm doing a project on outlier detection, and as one of the methods for gaining an understanding of my dataset I'm using boxplots to visualize how the data points lie in regard to all the data points ...
Oliver Michaelsen's user avatar
0 votes
1 answer
177 views

Visualizing dataset class distribution in pytorch

I have used in the past a seaborn plotting function to visualize the number of samples belonging to each class directory. That was very easy since each directory in which the dataset was divided ...
roberto bruzzese's user avatar
0 votes
0 answers
217 views

Why Seaborn's histplot takes a longer time to plot when the data is far from the median than when it is closer?

I have recently noticed that, for the some number of data points and for the same precision (int64), when using Seaborn's histplot on data that has huge variance with respect to the median it takes a ...
Propr's user avatar
  • 1
0 votes
0 answers
12 views

Looking for Exercises/labs

If someone knows some labs/exercises where you can train Pandas, numpy, seaborn. I appreciated! I have being looking on Kanggle, but if you guys know other options please let a comment
Galatic_1's user avatar
0 votes
0 answers
140 views

How do I add custom sd errorbar to my bar plot in seaborn?

The situation: university gave us an Excel document. We have a table, just write in our data and we get some tables and plots out. I think the plots are ugly and since I need it for a public ...
user avatar
0 votes
0 answers
41 views

Distribution check - different results using plt.hist and seaborn.displot

I have an apparently very simple task: checking the distribution of values contained in an array data. Only thing is, I get two completely different results by ...
sato's user avatar
  • 101
0 votes
0 answers
699 views

AttributeError: 'str' object has no attribute 'get'

how to solve 'str' object has no attribute 'get' error while trying to execute this code: sns.countplot(x='Survived', data='train') I have already successfully imported seaborn as sns and read the ...
Samuel Ahiadjipé's user avatar
0 votes
1 answer
12k views

ValueError: Could not interpret value `female_height` for parameter `x` when trying to plot certain rows

I have a big dataframe that consists of male and female shoe sizes. I am currently trying to plot size versus height for male and female separately. I have tried to slice the data and stored it in ...
royalTiger's user avatar
0 votes
1 answer
839 views

Adding another 'hue' to a pairplot

I have plotted a pairplot in Seaborn with a hue, similar to the one shown below. I would like to add another hue by changing the shape of the markers based on another categorical feature. E.g., the ...
Hector's user avatar
  • 1
1 vote
1 answer
26 views

Interpreting visualisations for write ups - clustermaps

I produced a clustermap as part of an attempt to visualise any multicollinearity in a dataset and it's occurred to me that I actually don't really know how to interpret it. There is plenty of ...
Vintagefiretruk's user avatar
0 votes
1 answer
292 views

Seaborn Heatmap with month & hour of database entry

I have a dataframe with X rows. For each row, I have the information of the month (value from 1 to 12) and hour (value from 1 to 24) in separate columns I need to create a heatmap with seaborn in ...
vib's user avatar
  • 103
1 vote
0 answers
115 views

Plot polar coordinates (2D) on a Poincáre Sphere surface as either heat map or scatter plot [closed]

I have a dataset with 4 values - amplitude, psi angle, chi angle and class (color). The psi angle and chi angle represent unique points on a . I want plot these psi and chi values on this sphere co-...
Tarun Maganti's user avatar
1 vote
1 answer
3k views

How can I remove legend from the figure in seaborn?

Here is my diagrams, I want to remove the labels of the second bar that is C1,C2,C3,C4,C5, because it is repeating.
Tariq Hussain's user avatar
1 vote
1 answer
22 views

Changing the predicted variable from price to price/km due to better visual correlation

I'm working on a dataset of Uber Rides from Kaggle. Of the important variables there are pickup and drop-off coordinates, passenger count, datetime of pickup, distance and the final price. I'm ...
mikemykhaylov's user avatar
0 votes
1 answer
2k views

Plot NaNs as a category seaborn countplot

I have a column in my dataframe which has 'True' as a value and all other values are NaNs (so there are no 'false' values). I want to plot a countplot for the said data in seaborn but want to include ...
ml_learner15's user avatar
1 vote
1 answer
277 views

Types Of Plots for Discrete Data

So I have a lot of discrete variables in my dataset and want to visualize them (univariate for now). I went through various articles over the internet and it is suggested that histograms and count ...
ml_learner15's user avatar
0 votes
0 answers
1k views

seaborn heatmap - x axis - repeated values

I'm in trouble creating a heatmap using a CSV file. csv data is in a format like below here is a code ...
Hello-experts's user avatar
1 vote
0 answers
32 views

Distplot 'a' parameter, does not make logical sense to me, can anyone explain?

Most sns plot parameters have names that make somewhat logical sense, For example scatterplot has the x attribute to choose what to plot on the x-axis, and y for y-axis. Similarly kdeplot uses the ...
ashtavakra's user avatar
0 votes
1 answer
4k views

Python: How to plot time interval from a Dataframe in Pandas

I have the a dataframe(df) which has the data of a Job being executed at different time intervals. It includes the following details about the execution of a job: ...
Subhawna's user avatar
5 votes
2 answers
27k views

Plot Two Categorical Variables

How to plot two categorical variables in Python or using any library? I want to plot the Playing Role of a Cricketer (Batsman, Bowler, etc.) VS Bought_By (Franchise Names, e.g., CSK, DC, etc.). The ...
Pradeep Singh's user avatar
1 vote
1 answer
1k views

Why the Silhouette Score and optimal number of Cluster changes when using 2D and 3D data?

I am experimenting with Kmeans clustering. My data (vectors) was in 300 dimensions which I am converting into 2D and 3D using PCA. Now, to find the optimal number of clusters, I used the Silhouette ...
Piyush Ghasiya's user avatar
2 votes
1 answer
27k views

how to create multiple subplots( scatterplot) in for loop

I want to create scatterplot of target variable with all the other variables in dataframe. Just like we create pairplot but as pairplot with large number of variables will take lot of time and ...
Strange119's user avatar
0 votes
1 answer
392 views

How to add Error Bar to Matplotlib line plot?

I have the following dataset which I use to plot a line plot. The plot is obtained as the mean of values obtained from the data. I want to add error bars to this ...
Ishan Dutta's user avatar
2 votes
1 answer
125 views

What is the most straightforward way to visualize color-coded clusters along with the cluster centers?

I have applied the kMeans Clustering algorithm to a dataframe and have gained cluster labels for each row. I had selected only two features. There are 4 clusters. I want to visualize the datapoints in ...
truth's user avatar
  • 280
1 vote
0 answers
150 views

Generating a Confusion Matrix from a Seaborn Heatmap

Is there a way I can reverse engineer a Seaborn heatmap saved as .png? I want to get the array of values out of it. Does the library provide a "load-from-image" facility, or is there any sta
Andrei-Cristian Rad's user avatar
3 votes
1 answer
939 views

Find non overlapping area between two kde plots in python

I was attempting to determine whether a feature is important or not base on its kde distribution for target variable. I am aware how to plot the kde plot and guess after looking at the plots, but is ...
BhishanPoudel's user avatar
0 votes
0 answers
64 views

How may I may fit the cluster number while it is going to the outside of the X-axis and when visualizing clusters in two dimensions?

I am writing code for DBSCAN clustering. I find the eps value which is 0.12 with the help of ...
As if's user avatar
  • 1
3 votes
1 answer
529 views

Seaborn Pairplot not showin colors of the labels

My dataframe looks similar to this I am using the following line to graph the pairplot sns.pairplot(iris, hue = 'States', height=7, aspect=0.8 ) The graph is ...
E199504's user avatar
  • 605
4 votes
2 answers
758 views

Seaborn Scatter plot

I have a dataset containing of only one column, using matplotlib I was able to do the scatter plot the following way ...
E199504's user avatar
  • 605
0 votes
1 answer
496 views

Vertical lines of overlapping points in Seaborn Swarmplot

When I plot my data to see its distribution via Swarmplot, these two vertical lines that seems to even overlap occur in the figure. It seems to occur even around values that are not that dense, such ...
meliksahturker's user avatar
1 vote
0 answers
1k views

Finding multiple histogram graphs with Seaborn

When graphing with matplotlib I get this 4 histograms model: 4 Histograms Using Seaborn I am getting the exact graph I need but I cannot replicate it to get 4 at a time: I want to get 4 of the ...
The Dan's user avatar
  • 183
0 votes
1 answer
349 views

What does the term 'Facet' in Seaborn FacetGrid imply?

I am a newbie to data science. I have a very basic understanding of Seaborn. My understanding is that it is used to plot grids. That said, I intend to have a better understanding of 'FacetGrid' and ...
Bipin's user avatar
  • 213
5 votes
1 answer
1k views

Plotting an empty bin in a Seaborn histogram

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 ...
JDG's user avatar
  • 151
0 votes
0 answers
239 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 ...
Hermes Morales's user avatar
1 vote
0 answers
121 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 ...
random student's user avatar
3 votes
2 answers
146 views

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

I have a list like this, ...
E. Zeytinci's user avatar
-1 votes
1 answer
217 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 ...
흐음흐음's user avatar
6 votes
1 answer
1k views

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

I was learning seaborn, but could not find the full name of seaborn.lmplot. What is 'l' and 'm' in the name 'lmplot'.
Shayekh Bin Islam's user avatar
2 votes
1 answer
4k 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 ...
Andrea Moro's user avatar
0 votes
1 answer
453 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. ...
soham_dhole's user avatar
2 votes
1 answer
73 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 ...
Gopal's user avatar
  • 31
0 votes
0 answers
8k 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 ...
Сергей74rus's user avatar