Comments (6)
What version of seaborn are you using ? I expect this problem would go away by updating to the latest version. Also, it would be best to provide an easily reproducible example instead of a custom dataframe.
from seaborn.
Bellow is the information of my seaborn obtained using conda list seaborn
# Name Version Build Channel
seaborn 0.10.1 py_0 conda-forge
seaborn-base 0.12.1 pyhd8ed1ab_0
The simple example replicating the issue that you request is below:
import pandas as pd
import seaborn as sns
a = {
'A': [1,2,3,4,5,6],
'B': [6,5,4,3,2,1]
}
sns.lineplot(data=a, x='A', y='B')
from seaborn.
Did you try to upgrade seaborn? (Or downgrade numpy?) The packages seaborn is built on (matplotlib, numpy, pandas, scipy, ...) frequently introduce non-compatible changes, and the only way to cope, is to upgrade seaborn (or downgrade the conflicting library). Note that seaborn 0.10.1 is from April 2020.
from seaborn.
I tried. with conda update seaborn
just after the issue appeared to solve the issue, but it is still present there.
from seaborn.
Your version of seaborn is severely outdated, the current version is 0.13. I am not sure why you have such an old version since Anaconda distributes 0.12 ; I recommend using conda-forge to install the latest version of seaborn.
from seaborn.
Looks like this was addressed in seaborn back in 2020: #2236
Your environment looks wonky as you have both seaborn
and seaborn-base
. I'd sort that out and then make sure that when you do import seaborn
you're actually getting the updated version (print(seaborn.__version__)
)
from seaborn.
Related Issues (20)
- Parameter fix in violinplot documentation HOT 1
- linecolor for boxplot HOT 1
- load_dataset cannot find example datasets HOT 4
- seaborn.objects incorrectly plots secondary y-axis HOT 1
- In Seaborn version 0.13, how to set the legend background to transparent and the legend title to empty? HOT 4
- seaborn scatterplot hue= datetime bug HOT 3
- Resolve pandas 2.2 warnings HOT 4
- location and orientation of split violins HOT 4
- Warning with pandas 2.2.0 and seaborn 0.13.1 kdeplot HOT 2
- sns.histplot does not draw correct bins when using log for y-axis. HOT 3
- Performance Issue: Seaborn Lineplot Execution Time Discrepancy with and without Timezones HOT 5
- sns.barplot(index ="index", x=" data_column1", y="data_column2") creates error due to whitespace before column name in x, y parameters HOT 1
- Add Color Universal Design palette HOT 2
- Palette does not support the use of defaultdict with missing values HOT 4
- `so.Hist` ignores `common_norm=True` for the `"density"` aggregate statistic
- Differences when displaying standard deviation on line and barplot HOT 1
- Subtplot size difference from matplotlib plot HOT 5
- catplot with numeric hue and hue_order: empty legend handles HOT 2
- sns.lineplot `hue`param will make wrong number of classes when it pass a field whose dtype is not `category` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seaborn.