Skip to content

Commit 4e19ac4

Browse files
committed
Merge commit 'v0.7.1-1-ga2e86c2' into debian
* commit 'v0.7.1-1-ga2e86c2': (90 commits) BUG: Fix Series, DataFrame plot() for non numerical/datetime (Multi)Index (closes pandas-dev#741). RLS: Version 0.7.1 DOC: release notes, what's new, change dev version to 0.7.1 BUG: close pandas-dev#839, another case where nan may be assigned to int series ENH: raise NotImplementedError if user tries to iterate over .ix, GH pandas-dev#840 BUG: fixed null-check per pandas-dev#839 BUG: close pandas-dev#839, exception on assigning NA to bool or int64 series TST: more test coverage for release target TST: added core coverage TST: fix lingering line of code from pandas-dev#838 DOC: added yet a bit more to release notes TST: unit test for pandas-dev#838 DOC: added more release notes BUG: raise more helpful error msg for pandas-dev#835 TST: added skip excel test for no xlrd installed BUG: close pandas-dev#835, add option to suppress index inference BUG: close pandas-dev#837, excelfile throws an exception for two-line file ENH: fill_value arg in DataFrame.reindex/reindex_axis, add fillna to sparse objects, GH pandas-dev#784 ENH: add fill_value argument to Series.reindex, DataFrame next, pandas-dev#784 ENH: concat Series with axis=1 for completeness, GH pandas-dev#787 ...
2 parents abc59ab + a2e86c2 commit 4e19ac4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2829
-746
lines changed

RELEASE.rst

+49
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,55 @@ Where to get it
2222
* Binary installers on PyPI: http://pypi.python.org/pypi/pandas
2323
* Documentation: http://pandas.pydata.org
2424

25+
pandas 0.7.1
26+
============
27+
28+
**Release date:** February 29, 2012
29+
30+
**New features / modules**
31+
32+
- Add ``to_clipboard`` function to pandas namespace for writing objects to
33+
the system clipboard (#774)
34+
- Add ``itertuples`` method to DataFrame for iterating through the rows of a
35+
dataframe as tuples (#818)
36+
- Add ability to pass fill_value and method to DataFrame and Series align
37+
method (#806, #807)
38+
- Add fill_value option to reindex, align methods (#784)
39+
- Enable concat to produce DataFrame from Series (#787)
40+
- Add ``between`` method to Series (#802)
41+
- Add HTML representation hook to DataFrame for the IPython HTML notebook
42+
(#773)
43+
- Support for reading Excel 2007 XML documents using openpyxl
44+
45+
**Improvements to existing features**
46+
47+
- Improve performance and memory usage of fillna on DataFrame
48+
- Can concatenate a list of Series along axis=1 to obtain a DataFrame (#787)
49+
50+
**Bug fixes**
51+
52+
- Fix memory leak when inserting large number of columns into a single
53+
DataFrame (#790)
54+
- Appending length-0 DataFrame with new columns would not result in those new
55+
columns being part of the resulting concatenated DataFrame (#782)
56+
- Fixed groupby corner case when passing dictionary grouper and as_index is
57+
False (#819)
58+
- Fixed bug whereby bool array sometimes had object dtype (#820)
59+
- Fix exception thrown on np.diff (#816)
60+
- Fix to_records where columns are non-strings (#822)
61+
- Fix Index.intersection where indices have incomparable types (#811)
62+
- Fix ExcelFile throwing an exception for two-line file (#837)
63+
- Add clearer error message in csv parser (#835)
64+
- Fix loss of fractional seconds in HDFStore (#513)
65+
- Fix DataFrame join where columns have datetimes (#787)
66+
- Work around numpy performance issue in take (#817)
67+
- Improve comparison operations for NA-friendliness (#801)
68+
- Fix indexing operation for floating point values (#780, #798)
69+
- Fix groupby case resulting in malformed dataframe (#814)
70+
- Fix behavior of reindex of Series dropping name (#812)
71+
- Improve on redudant groupby computation (#775)
72+
- Catch possible NA assignment to int/bool series with exception (#839)
73+
2574
pandas 0.7.0
2675
============
2776

doc/source/api.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ General functions
1212

1313
Data manipulations
1414
~~~~~~~~~~~~~~~~~~
15-
.. currentmodule:: pandas
15+
.. currentmodule:: pandas.tools.pivot
1616

1717
.. autosummary::
1818
:toctree: generated/
1919

2020
pivot_table
21+
22+
.. currentmodule:: pandas.tools.merge
23+
24+
.. autosummary::
25+
:toctree: generated/
26+
2127
merge
2228
concat
2329

@@ -430,6 +436,7 @@ Serialization / IO / Conversion
430436
DataFrame.from_csv
431437
DataFrame.from_records
432438
DataFrame.to_csv
439+
DataFrame.to_excel
433440
DataFrame.to_dict
434441
DataFrame.to_records
435442
DataFrame.to_sparse

doc/source/basics.rst

+13
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,19 @@ For instance, a contrived way to transpose the dataframe would be:
759759
df2_t = DataFrame(dict((idx,values) for idx, values in df2.iterrows()))
760760
print df2_t
761761
762+
itertuples
763+
~~~~~~~~~~
764+
765+
This method will return an iterator yielding a tuple for each row in the
766+
DataFrame. The first element of the tuple will be the row's corresponding index
767+
value, while the remaining values are the row values proper.
768+
769+
For instance,
770+
771+
.. ipython:: python
772+
773+
for r in df2.itertuples(): print r
774+
762775
.. _basics.sorting:
763776

764777
Sorting by index and value

doc/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
# General information about the project.
6363
project = u'pandas'
64-
copyright = u'2008-2011, the pandas development team'
64+
copyright = u'2008-2012, the pandas development team'
6565

6666
# The version info for the project you're documenting, acts as replacement for
6767
# |version| and |release|, also used in various other places throughout the

doc/source/index.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ pandas: powerful Python data analysis toolkit
1010

1111
**Date**: |today| **Version**: |version|
1212

13-
**Installers:** http://pypi.python.org/pypi/pandas
13+
**Binary Installers:** http://pypi.python.org/pypi/pandas
1414

15-
**Code Repository:** http://github.com/pydata/pandas
15+
**Source Repository:** http://github.com/pydata/pandas
1616

17-
**Mailing List:** http://groups.google.com/group/pystatsmodels
17+
**Issues & Ideas:** https://github.com/pydata/pandas/issues
18+
19+
**Q&A Support:** http://stackoverflow.com/questions/tagged/pandas
20+
21+
**Developer Mailing List:** http://groups.google.com/group/pystatsmodels
1822

1923
**pandas** is a `Python <http://www.python.org>`__ package providing fast,
2024
flexible, and expressive data structures designed to make working with

doc/source/io.rst

+30-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ of the DataFrame as an html table. The function arguments are as in the method
323323
``to_string`` described above.
324324

325325

326-
Excel 2003 files
326+
Excel files
327327
----------------
328328

329329
The ``ExcelFile`` class can read an Excel 2003 file using the ``xlrd`` Python
@@ -341,6 +341,35 @@ additional arguments as the parsers above:
341341
342342
xls.parse('Sheet1', index_col=None, na_values=['NA'])
343343
344+
To read sheets from an Excel 2007 file, you can pass a filename with a ``.xlsx``
345+
extension, in which case the ``openpyxl`` module will be used to read the file.
346+
347+
To write a DataFrame object to a sheet of an Excel file, you can use the
348+
``to_excel`` instance method. The arguments are largely the same as ``to_csv``
349+
described above, the first argument being the name of the excel file, and the
350+
optional second argument the name of the sheet to which the DataFrame should be
351+
written. For example:
352+
353+
.. code-block:: python
354+
355+
df.to_excel('path_to_file.xlsx', sheet_name='sheet1')
356+
357+
Files with a ``.xls`` extension will be written using ``xlwt`` and those with
358+
a ``.xlsx`` extension will be written using ``openpyxl``.
359+
The Panel class also has a ``to_excel`` instance method,
360+
which writes each DataFrame in the Panel to a separate sheet.
361+
362+
In order to write separate DataFrames to separate sheets in a single Excel file,
363+
one can use the ExcelWriter class, as in the following example:
364+
365+
.. code-block:: python
366+
367+
writer = ExcelWriter('path_to_file.xlsx')
368+
df1.to_excel(writer, sheet_name='sheet1')
369+
df2.to_excel(writer, sheet_name='sheet2')
370+
writer.save()
371+
372+
344373
HDF5 (PyTables)
345374
---------------
346375

doc/source/overview.rst

+8-6
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,14 @@ sensible.
8181
Getting Support
8282
---------------
8383

84-
For community support, please join us on the `pystatsmodels mailing list
85-
<http://groups.google.com/group/pystatsmodels>`__.
86-
87-
For commercial support from Lambda Foundry, please send inquiries to:
88-
89-
84+
The first stop for pandas issues and ideas is the `Github Issue Tracker
85+
<https://github.com/pydata/pandas/issues>`__. If you have a general question,
86+
pandas community experts can answer through `Stack Overflow
87+
<http://stackoverflow.com/questions/tagged/pandas>`__.
88+
89+
Longer discussions occur on the `developer mailing list
90+
<http://groups.google.com/group/pystatsmodels>`__, and commercial support
91+
inquiries for Lambda Foundry should be sent to: [email protected]
9092

9193
Credits
9294
-------

doc/source/whatsnew.rst

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ What's New
1616

1717
These are new features and improvements of note in each release.
1818

19+
.. include:: whatsnew/v0.7.1.txt
20+
1921
.. include:: whatsnew/v0.7.0.txt
2022

2123
.. include:: whatsnew/v0.6.1.txt

doc/source/whatsnew/v0.7.1.txt

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. _whatsnew_0701:
2+
3+
v.0.7.1 (February 29, 2012)
4+
---------------------------
5+
6+
This release includes a few new features and addresses over a dozen bugs in
7+
0.7.0.
8+
9+
New features
10+
~~~~~~~~~~~~
11+
12+
- Add ``to_clipboard`` function to pandas namespace for writing objects to
13+
the system clipboard (#774)
14+
- Add ``itertuples`` method to DataFrame for iterating through the rows of a
15+
dataframe as tuples (#818)
16+
- Add ability to pass fill_value and method to DataFrame and Series align
17+
method (#806, #807)
18+
- Add fill_value option to reindex, align methods (#784)
19+
- Enable concat to produce DataFrame from Series (#787)
20+
- Add ``between`` method to Series (#802)
21+
- Add HTML representation hook to DataFrame for the IPython HTML notebook
22+
(#773)
23+
- Support for reading Excel 2007 XML documents using openpyxl
24+
25+
Performance improvements
26+
~~~~~~~~~~~~~~~~~~~~~~~~
27+
28+
- Improve performance and memory usage of fillna on DataFrame
29+
- Can concatenate a list of Series along axis=1 to obtain a DataFrame (#787)

pandas/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525

2626
from pandas.core.format import (set_printoptions, reset_printoptions,
2727
set_eng_float_format)
28-
from pandas.io.parsers import read_csv, read_table, read_clipboard, ExcelFile, ExcelWriter
28+
from pandas.io.parsers import (read_csv, read_table, read_clipboard,
29+
to_clipboard, ExcelFile, ExcelWriter)
2930
from pandas.io.pytables import HDFStore
3031
from pandas.util.testing import debug
3132

0 commit comments

Comments
 (0)