Replies: 3 comments
-
|
A couple of thoughts below, building on Feng's post:
I'm not intimately familiar with all of pandas capabilities, so it's entirely possible that pandas doesn't make some or all of these things easier, just throwing them out there! |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @alexkjames . For 1, are you thinking of something of the form ts1 & ts2 where the values/times are joined together (in chronological order, of course)? Marco would tell you to think about how metadata from both series would need to be combined, then. If they are the same, no problem, but otherwise the combination would need rules. What would those be? Re: 2, this is definitely on our end; I suggest you open an issue about it so we think of an appropriate response. For many tasks if it simply easier to drop NaNs, but I agree that other applications need to original data. What rules would you put in place for that? |
Beta Was this translation helpful? Give feedback.
-
|
Closing this since we are done with this part of the project. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is to add some ideas to the milestone with the same title. Essentially the question @CommonClimate asked:"What pandas capabilities would you find most useful in Pyleoclim, which weren’t doable or too tedious before?"
I have the below ideas in my mind:
1.1. One capability that pandas has, I’ve been thinking for a while, is the operator overloading to support convenient basic calculations between two series, such as +, -, *, /. One example is that we want to remove the mean of a series.
1.2. With operator overloading, we may also create a convenient way to create a
MultipleSeriesfrom multipleSeriesobjects likems = ts1 & ts2 & ts3andms2 = ms1 - ts.2. Another capability I find very useful and has already been implemented in
cfris theannualize(months=...)method, which is based on xarray but essentially a delicate usage of a couple of pandas methods. It enables seasonalization of a monthly series with arbitrary seasons by specifyingmonths, e.g., JJA average w/months=[6, 7, 8], and DJF w/months=[12, 1, 2].Regarding point 1.2, we need to think about how to deal with the metadata when combining multiple
Seriesobjects. Note that this issue is not tied to this new approach ofMulitpleSeriescreation; it exists with the old approach (using theMultipleSeries.series_listattribute) as well.Welcome to share your thoughts on this topic.
Beta Was this translation helpful? Give feedback.
All reactions