1
1
.. _whatsnew_0111:
2
2
3
- v0.11.1 (?? )
3
+ v0.11.1 (June ??, 2013 )
4
4
------------------------
5
5
6
6
This is a minor release from 0.11.0 and includes several new features and
7
7
enhancements along with a large number of bug fixes.
8
8
9
- The I/O api is now much more consistent with the following top-level reading
10
- functions available, e.g. ``pd.read_csv``, and the counterpart writers are
11
- available as object methods, e.g. ``df.to_csv``
9
+ API changes
10
+ ~~~~~~~~~~~
12
11
13
- .. csv-table::
14
- :widths: 12, 15, 15, 15, 15
15
- :delim: ;
12
+ - The I/O api is now much more consistent with the following top-level reading
13
+ functions available, e.g. ``pd.read_csv``, and the counterpart writers are
14
+ available as object methods, e.g. ``df.to_csv``
16
15
17
- Reader; ``read_csv``; ``read_excel``; ``read_hdf``; ``read_sql``
18
- Writer; ``to_csv``; ``to_excel``; ``to_hdf``; ``to_sql``
19
- Reader; ``read_html``; ``read_stata``; ``read_clipboard`` ;
20
- Writer; ``to_html``; ``to_stata``; ``to_clipboard`` ;
16
+ .. csv-table::
17
+ :widths: 12, 15, 15, 15, 15
18
+ :delim: ;
21
19
22
- API changes
23
- ~~~~~~~~~~~
20
+ Read; ``read_csv``; ``read_excel``; ``read_hdf``; ``read_sql``
21
+ Write; ``to_csv``; ``to_excel``; ``to_hdf``; ``to_sql``
22
+ Read; ``read_html``; ``read_stata``; ``read_clipboard`` ;
23
+ Write; ``to_html``; ``to_stata``; ``to_clipboard`` ;
24
24
25
25
- Fix modulo and integer division on Series,DataFrames to act similary to ``float`` dtypes to return
26
26
``np.nan`` or ``np.inf`` as appropriate (GH3590_). This correct a numpy bug that treats ``integer``
27
27
and ``float`` dtypes differently.
28
28
29
29
.. ipython:: python
30
30
31
- p = DataFrame({ 'first' : [3, 4,5,8], 'second' : [0, 0,0,3] })
31
+ p = DataFrame({ 'first' : [4,5,8], 'second' : [0,0,3] })
32
32
p % 0
33
33
p % p
34
34
p / p
@@ -37,7 +37,7 @@ API changes
37
37
- Add ``squeeze`` keyword to ``groupby`` to allow reduction from
38
38
DataFrame -> Series if groups are unique. This is a Regression from 0.10.1.
39
39
We are reverting back to the prior behavior. This means groupby will return the
40
- same shaped objects whether the groups are unique or not. revert on (GH2893_)
40
+ same shaped objects whether the groups are unique or not. Revert this issue (GH2893_)
41
41
with (GH3596_).
42
42
43
43
.. ipython:: python
@@ -83,6 +83,7 @@ API changes
83
83
- ``DataFrame.interpolate()`` is now deprecated. Please use
84
84
``DataFrame.fillna()`` and ``DataFrame.replace()`` instead. (GH3582_,
85
85
GH3675_, GH3676_)
86
+
86
87
- the ``method`` and ``axis`` arguments of ``DataFrame.replace()`` are
87
88
deprecated
88
89
@@ -115,14 +116,17 @@ API changes
115
116
from pandas.io.sql import read_frame
116
117
read_frame(....)
117
118
119
+ - ``DataFrame.to_html`` and ``DataFrame.to_latex`` now accept a path for
120
+ their first argument (GH3702_)
121
+
118
122
Enhancements
119
123
~~~~~~~~~~~~
120
124
121
125
- ``pd.read_html()`` can now parse HTML strings, files or urls and return
122
126
DataFrames, courtesy of @cpcloud. (GH3477_, GH3605_, GH3606_, GH3616_).
123
127
It works with a *single* parser backend: BeautifulSoup4 + html5lib
124
128
125
- - You can use ``pd.read_html()`` to read the output from ``DataFrame.to_html()`` like so
129
+ You can use ``pd.read_html()`` to read the output from ``DataFrame.to_html()`` like so
126
130
127
131
.. ipython :: python
128
132
@@ -138,18 +142,7 @@ Enhancements
138
142
- ``pd.read_html()`` no longer performs hard conversion of date strings
139
143
(GH3656_).
140
144
141
- - ``HDFStore``
142
-
143
- - will retain index attributes (freq,tz,name) on recreation (GH3499_)
144
- - will warn with a AttributeConflictWarning if you are attempting to append
145
- an index with a different frequency than the existing, or attempting
146
- to append an index with a different name than the existing
147
- - support datelike columns with a timezone as data_columns (GH2852_)
148
-
149
- - ``fillna`` methods now raise a ``TypeError`` if the ``value`` parameter is
150
- a list or tuple.
151
-
152
- - Added module for reading and writing Stata files: pandas.io.stata (GH1512_)
145
+ - Added module for reading and writing Stata files: ``pandas.io.stata`` (GH1512_)
153
146
accessable via ``read_stata`` top-level function for reading,
154
147
and ``to_stata`` DataFrame method for writing
155
148
@@ -175,29 +168,7 @@ Enhancements
175
168
176
169
to replace all occurrences of the string ``'.'`` with ``NaN``.
177
170
178
- - ``Series.str`` now supports iteration (GH3638_). You can iterate over the
179
- individual elements of each string in the ``Series``. Each iteration yields
180
- yields a ``Series`` with either a single character at each index of the
181
- original ``Series`` or ``NaN``. For example,
182
-
183
- .. ipython:: python
184
-
185
- strs = 'go', 'bow', 'joe', 'slow'
186
- ds = Series(strs)
187
-
188
- for s in ds.str:
189
- print s
190
-
191
- s
192
- s.dropna().values.item() == 'w'
193
-
194
- The last element yielded by the iterator will be a ``Series`` containing
195
- the last element of the longest string in the ``Series`` with all other
196
- elements being ``NaN``. Here since ``'slow'`` is the longest string
197
- and there are no other strings with the same length ``'w'`` is the only
198
- non-null string in the yielded ``Series``.
199
-
200
- - Multi-index column support for reading and writing csvs
171
+ - Multi-index column support for reading and writing csv format files
201
172
202
173
- The ``header`` option in ``read_csv`` now accepts a
203
174
list of the rows from which to read the index.
@@ -233,11 +204,6 @@ Enhancements
233
204
- ``pd.melt()`` now accepts the optional parameters ``var_name`` and ``value_name``
234
205
to specify custom column names of the returned DataFrame.
235
206
236
- - Plotting functions now raise a ``TypeError`` before trying to plot anything
237
- if the associated objects have have a ``dtype`` of ``object`` (GH1818_,
238
- GH3572_). This happens before any drawing takes place which elimnates any
239
- spurious plots from showing up.
240
-
241
207
- ``pd.set_option()`` now allows N option, value pairs (GH3667_).
242
208
243
209
Let's say that we had an option ``'a.b'`` and another option ``'b.c'``.
@@ -257,14 +223,47 @@ Enhancements
257
223
pd.get_option('a.b')
258
224
pd.get_option('b.c')
259
225
260
- You can of course still do it sequentially if you want. You can use up to
261
- N arguments here, the only stipulation is that the number of arguments
262
- must be even (since if they weren't then that would mean you provided an
263
- argument name with no value).
264
-
265
226
Bug Fixes
266
227
~~~~~~~~~
267
228
229
+ - Plotting functions now raise a ``TypeError`` before trying to plot anything
230
+ if the associated objects have have a ``dtype`` of ``object`` (GH1818_,
231
+ GH3572_). This happens before any drawing takes place which elimnates any
232
+ spurious plots from showing up.
233
+
234
+ - ``fillna`` methods now raise a ``TypeError`` if the ``value`` parameter is
235
+ a list or tuple.
236
+
237
+ - ``Series.str`` now supports iteration (GH3638_). You can iterate over the
238
+ individual elements of each string in the ``Series``. Each iteration yields
239
+ yields a ``Series`` with either a single character at each index of the
240
+ original ``Series`` or ``NaN``. For example,
241
+
242
+ .. ipython:: python
243
+
244
+ strs = 'go', 'bow', 'joe', 'slow'
245
+ ds = Series(strs)
246
+
247
+ for s in ds.str:
248
+ print s
249
+
250
+ s
251
+ s.dropna().values.item() == 'w'
252
+
253
+ The last element yielded by the iterator will be a ``Series`` containing
254
+ the last element of the longest string in the ``Series`` with all other
255
+ elements being ``NaN``. Here since ``'slow'`` is the longest string
256
+ and there are no other strings with the same length ``'w'`` is the only
257
+ non-null string in the yielded ``Series``.
258
+
259
+ - ``HDFStore``
260
+
261
+ - will retain index attributes (freq,tz,name) on recreation (GH3499_)
262
+ - will warn with a ``AttributeConflictWarning`` if you are attempting to append
263
+ an index with a different frequency than the existing, or attempting
264
+ to append an index with a different name than the existing
265
+ - support datelike columns with a timezone as data_columns (GH2852_)
266
+
268
267
- Non-unique index support clarified (GH3468_).
269
268
270
269
- Fix assigning a new index to a duplicate index in a DataFrame would fail (GH3468_)
@@ -282,9 +281,6 @@ Bug Fixes
282
281
283
282
- ``DataFrame.from_records`` did not accept empty recarrays (GH3682_)
284
283
285
- - ``DataFrame.to_html`` and ``DataFrame.to_latex`` now accept a path for
286
- their first argument (GH3702_)
287
-
288
284
See the `full release notes
289
285
<https://github.com/pydata/pandas/blob/master/RELEASE.rst>`__ or issue tracker
290
286
on GitHub for a complete list.
0 commit comments