Questions tagged [seaborn]
Seaborn is a statistical data visualization library for Python.
93
questions
0
votes
0
answers
22
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 ...
0
votes
2
answers
30
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 ...
0
votes
1
answer
65
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 ...
0
votes
0
answers
54
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 ...
0
votes
0
answers
9
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
0
votes
0
answers
72
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 ...
0
votes
0
answers
18
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 ...
0
votes
0
answers
558
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 ...
0
votes
1
answer
6k
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 ...
0
votes
0
answers
30
views
When you plot features(pairplot) and gets many vertical plots, which non-linear regression would be useful to make sense of it?
I have plotted my N features against the output and I have multiple vertical plots and was wondering, if I should go by decision trees.
0
votes
1
answer
395
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 ...
1
vote
1
answer
19
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 ...
0
votes
1
answer
213
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 ...
1
vote
0
answers
103
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-...
0
votes
1
answer
2k
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.
1
vote
1
answer
20
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 ...
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 ...
1
vote
1
answer
210
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 ...
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
...
1
vote
0
answers
31
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 ...
0
votes
1
answer
3k
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:
...
5
votes
2
answers
22k
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 ...
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 ...
2
votes
1
answer
26k
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 ...
0
votes
1
answer
369
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 ...
2
votes
1
answer
98
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 ...
1
vote
0
answers
142
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
3
votes
1
answer
824
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 ...
0
votes
0
answers
62
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 ...
3
votes
1
answer
474
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 ...
4
votes
2
answers
666
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
...
0
votes
1
answer
419
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 ...
1
vote
0
answers
913
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 ...
0
votes
1
answer
296
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 ...
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 ...
0
votes
0
answers
213
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 ...
1
vote
0
answers
109
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 ...
3
votes
2
answers
131
views
How can I find to starting point of skewed data in python?
I have a list like this,
...
-1
votes
1
answer
191
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 ...
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'.
2
votes
1
answer
3k
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
1
answer
433
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. ...
2
votes
1
answer
63
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
0
answers
6k
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 ...
1
vote
0
answers
987
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 ...
4
votes
2
answers
1k
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 ...
3
votes
2
answers
1k
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
1
answer
2k
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?
...
3
votes
0
answers
426
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 ...
3
votes
1
answer
569
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.
...