Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7677425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:25:10+00:00 2026-05-31T17:25:10+00:00

I see that Pandas does not allow duplicate time series indexes yet ( https://github.com/pydata/pandas/issues/643

  • 0

I see that Pandas does not allow duplicate time series indexes yet (https://github.com/pydata/pandas/issues/643), but will be added soon. I am wondering if there is a good way to apply rolling window means to a dataset with duplicate times by a multi-index tag/column

Basically I have a csv of non-ordered events that consist of epochtime, hierarchical tags (tag1, tag2), and time taken. A small sample:

 epochTimeMS,event,tag,timeTakenMS
 1331782842801,event1,tag1,16
 1331782841535,event1,tag2,1278
 1331782842801,event1,tag1,17
 1331782842381,event2,tag1,436

What I want to do is build and graph rolling means with varying ms windows, by event and event+tag. This seems like it should be accomplished in Pandas, but not sure if I will need to wait until the duplicate time-series indexes first. Any thoughts on hacking this in place now?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:25:11+00:00Added an answer on May 31, 2026 at 5:25 pm

    There’s nothing really to stop you right now:

    In [17]: idf = df.set_index(['tag', 'epochTimeMS'], verify_integrity=False).sort_index()
    
    In [18]: idf
    Out[18]: 
                         event  timeTakenMS
    tag  epochTimeMS                       
    tag1 1331782842381  event2          436
         1331782842801  event1           16
         1331782842801  event1           17
    tag2 1331782841535  event1         1278
    
    In [20]: idf.ix['tag1']
    Out[20]: 
                    event  timeTakenMS
    epochTimeMS                       
    1331782842381  event2          436
    1331782842801  event1           16
    1331782842801  event1           17
    

    Accessing specific values by timestamp will cause an exception (this is going to be improved, as you mention), but you can certainly work with the data. Now, if you want a fixed-length (in time space) window, that’s not supported very well yet but I created an issue here:

    https://github.com/pydata/pandas/issues/936

    If you could speak up on the mailing list about your API requirements in your application it would be helpful for me and the guys since we’re actively working on the time series capabilities right now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I see that there's a port of memcache client for gevent (https://github.com/hjlarsson/gevent-memcache), but it
If I go to https://github.com/wesm/pandas and click the Download button to download a zip
I see that the IPhone core audio does not include audioDevice objects to render
I see that sometimes NSImage size is not real size (with some pictures) and
I see that in different plugins and codes, but I don't understand what does
I see that time to time localhost port number changes ( http://localhost:1519/ ....). Basically
I see that most sites that allow you to login with OpenID have several
I see that fiver have implemented an instant pay feature with paypal. Does anyone
I see that there is not a dropdown/combobox offered in the windows phone toolbox.
I see that address is not changed after going to second page (file) through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.