Comments (5)
Try calling df.reset_index(), even just in the line where you pass it to tsplot
?
from seaborn.
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.
So, I got it to work following your instructions.
See the notebook for the gory details.
Essentially the issues were.
- 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. - 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.
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.
Well this happened to me today.
from seaborn.
Related Issues (20)
- 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
- AttributeError: module 'numpy' has no attribute 'float'. HOT 6
- 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
- Calling scatterplot with size and hue raises TypeError HOT 3
- HI ,we need seaborn cpp HOT 2
- histogram with fixed binwidth - unexpected results for last column HOT 4
- Docu: Reference to root package missing in object.inv file HOT 6
- Value error in histplot with binwidth smaller than half the data range HOT 2
- UnboundLocalError: local variable 'boxprops' referenced before assignment HOT 11
- Doubts about using two types of graphics to draw simultaneously HOT 2
- Palette setting ignored unless passed directly for numeric hues HOT 1
- scatter plot with wide data: markers=False gives an error HOT 3
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.