Skip to content

Commit

Permalink
DOC: What's New for refactored compression code
Browse files Browse the repository at this point in the history
Add what's new corresponding to pandas-dev#14576.
  • Loading branch information
dhimmel committed Dec 15, 2016
1 parent cb91007 commit 210fb20
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/source/whatsnew/v0.20.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ Strings passed to ``DataFrame.groupby()`` as the ``by`` parameter may now refere

df.groupby(['second', 'A']).sum()

Reading dataframes from URLs, in :func:`read_csv` or :func:`read_table`, now
supports additional compression methods (`xz`, `bz2`, `zip`). Previously, only
`gzip` compression was supported. By default, compression of URLs and paths are
now both inferred using their file extensions.

.. ipython:: python

url = ('https://github.com/pandas-dev/pandas/raw/master/' +
'pandas/io/tests/parser/data/salaries.csv.bz2')
df = pd.read_table(url, compression='infer') # default, infer compression
df = pd.read_table(url, compression='bz2') # explicitly specify compression
df.head(2)

.. _whatsnew_0200.enhancements.other:

Expand Down

0 comments on commit 210fb20

Please sign in to comment.