addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Python for Data Analysis: Time Series Data

We are going to wrap up the semester by exploring the time series functionality available in the pandas library. Please note, we are not going to have a tutorial on regular expressions tutorial this week as previously planned. Hope to see you next week!


We will be meeting on the 2nd floor of the ATLAS building in room 229.

Join or login to comment.

  • Neal M.

    Nice followup, Daniel!

    And for yet more interesting examples, see

    where you learn that index can also be a tuple of slice objects, when there are multiple slices in the subscript. And you find the Ellipsis object there also :) Note that `item` is the same as repr(item), a deprecated syntax that is gone in Python 3.

    December 19, 2013

  • Daniel S.

    We talked a bit about subclassing the [] operator in Python, and I had to scratch this itch. If you make a file called "" and run it: class Overload:
    def __getitem__(self, index):
    if isinstance(index, slice):
    #start, stop, step, indices
    print index.start
    print index.stop
    print index.step
    return index.start if __name__ == '__main__':
    a = Overload()
    print a[3:5:2]
    print a[4:100:10]
    print a[1:10]
    print a[4]
    print a[:4:2];

    You get: iris:Desktop dfs$ python [masked]
    1 10
    1 None
    4 2
    iris:Desktop dfs$ You can see that the bracket/slice/indexing notation gets passed in to the __getitem__ operator, and you can do whatever you want with the slices. The 'index' argument is a slice, with start, stop, and step methods to give you the parts of the argument that was passed in. There's also an indices() method that takes one argument. Hope that helps,

    December 19, 2013

  • Connie O.

    Think it will not work out today - will look for the class notes update to see what I missed. I hope that the existing class notes will continue to be hosted for a while, as they are great for review, and I mean to peruse them over the holidays. What a great class!

    December 19, 2013

  • MJ B.

    Darn! Molly and I will be sorry to miss this! Please let us know when you post your class notes, they are very helpful.

    1 · December 12, 2013

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy