Giter Club home page Giter Club logo

Comments (6)

thuiop avatar thuiop commented on June 14, 2024

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.

alcarnielo avatar alcarnielo commented on June 14, 2024

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.

jhncls avatar jhncls commented on June 14, 2024

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.

alcarnielo avatar alcarnielo commented on June 14, 2024

I tried. with conda update seaborn just after the issue appeared to solve the issue, but it is still present there.

from seaborn.

thuiop avatar thuiop commented on June 14, 2024

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.

mwaskom avatar mwaskom commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.