r/Python • • Mar 12 '16

Pandas 0.18 releases!

http://pandas.pydata.org/pandas-docs/version/0.18.0/whatsnew.html
201 Upvotes

16 comments sorted by

34

u/cscanlin Mar 12 '16

This release has my first open source contribution!

  • pivot_table() now accepts most iterables for the values parameter (GH12017)

8

u/import-THIS Mar 13 '16

Yeah, pandas is where I've made the majority of my (very small) open source contributions. Great unit tests so you can check whether your code is going to break stuff, and the maintainers talk you through getting your commits into shape.

If you use pandas regularly and can see something that could be improved, have a look to see if you can contribute.

1

u/[deleted] Mar 19 '16

Can someone work on a to_tde package?https://github.com/pydata/pandas/issues/11601

Tableau Data Extracts. You need to use python 2.7 for the API currently and you have to write the data row by row after converting the fields. I would love a god damn way to export my pandas dataframe (I use pandas for everything) to a .tde file.

3

u/Jamesbev Mar 12 '16

Was just using pivot_table() today and looking for this functionality! Kudos.

2

u/cscanlin Mar 12 '16

Thanks! It was a pretty easy enhancement, but I'm glad at least one person has benefited from it!

3

u/jchill2 Mar 13 '16

Thank you sir

16

u/Zouden Mar 12 '16
r = df.rolling(window=3)
r.mean()

Oh nice, this is so much better than having to call pd.rolling_mean(). I've always thought that it shouldn't be a top-level function. Hopefully they'll do the same for pd.melt().

4

u/jdmarino Mar 12 '16

Frankly, it's hard to read the highlights without hearing Jeff Reback's voice in my head.

3

u/PeridexisErrant Mar 13 '16

Awesome! I'm just starting a project which will spend a lot of time with rolling windows, so this is fantastic timing :)

4

u/jchill2 Mar 12 '16

I literally just learned the rolling syntax. Oh well

1

u/Homersteiner Mar 13 '16

A number of months ago i was in the middle of a contract project and pandas was misbehaving, so i upgraded. Terrible mistake. Runtimes were increased 10 fold, and matplotlib stopped working. A little google searching revealed panadas to the be problem. Downgraded to 0.16.2 and all was well again. So, you will forgive me if i dont upgrade until the bugs are addressed.

8

u/NavreetGill Mar 13 '16

Bugs are addressed as they are filed. Did you file one?

0

u/Homersteiner Mar 13 '16

I think completely killing runtimes and matplotlib should be found before the word "release" is even uttered.

5

u/NavreetGill Mar 14 '16

There are benchmarks that run after each commit, and there are a lot of tests. So, I doubt that runtimes were increased "10 fold", and matplotlib stopped working for many people. If it happened for you, it might've been your setup, or a corner case (in which case I recommend you file a bug).

Or, since you were using pandas to make money, you could also donate some of that towards it.

1

u/[deleted] Mar 19 '16

FYI pandas is on numfocus now so you can donate. I just made two $100 contributions the other day to pandas and jupyter notebooks because I love them.

0

u/Homersteiner Mar 19 '16

FYI, treating windows users (7-64, 2.7), like lower class citizens does NOT make anyone want to upgrade. Thanks for your condescending attitude...no update for shit software.