Git Product home page Git Product logo

Comments (5)

mwaskom avatar mwaskom commented on May 11, 2024

Try calling df.reset_index(), even just in the line where you pass it to tsplot?

from seaborn.

mwaskom avatar mwaskom commented on May 11, 2024

OK the solution will have to be doing something like this

(Or not calling pivot and doing something else when unit is None)

from seaborn.

laprice avatar laprice commented on May 11, 2024

So, I got it to work following your instructions.

See the notebook for the gory details.

Essentially the issues were.

  1. needed to pass parse_dates=True when importing the csv as apparently the time index needs to be datetime objects, not opaque strings that sort in date order.
  2. all the pivot jazz to get things lined up correctly.

It seems counterintuitive to me that you have to reorder the table if you have a temporal index, but I'm sure you have your reasons.

In this instance I think I'm not understanding what was optional and what was required.

Closing as not a bug. I'll be poking at the documentation and doing more with the library so I'm sure I'll have more questions. Thanks for your help.

from seaborn.

mwaskom avatar mwaskom commented on May 11, 2024

The main advantage of tsplot is the handling of uncertainty by bootstrapping across sampling units at each timepoint (and then plotting it in various ways the emphasize different aspects of the uncertainty). It probably should behave better in situations where the caller isn't asking for all that jazz, but in your usecase it's not clear that tsplot is ever going to give you more than doing df.plot().

I'll downgrade the tag to "annoyance" and think about this more :)

from seaborn.

shobhitverma avatar shobhitverma commented on May 11, 2024

Well this happened to me today.

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.