forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv0.15.1.txt
102 lines (67 loc) · 2.65 KB
/
v0.15.1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.. _whatsnew_0151:
v0.15.1 (November ??, 2014)
-----------------------
This is a minor release from 0.15.0 and includes a small number of API changes, several new features,
enhancements, and performance improvements along with a large number of bug fixes. We recommend that all
users upgrade to this version.
- Highlights include:
- :ref:`Enhancements <whatsnew_0151.enhancements>`
- :ref:`API Changes <whatsnew_0151.api>`
- :ref:`Performance Improvements <whatsnew_0151.performance>`
- :ref:`Experimental Changes <whatsnew_0151.experimental>`
- :ref:`Bug Fixes <whatsnew_0151.bug_fixes>`
.. _whatsnew_0151.api:
API changes
~~~~~~~~~~~
- ``groupby`` with ``as_index=False`` will not add erroneous extra columns to
result (:issue:`8582`):
.. code-block:: python
In [1]: np.random.seed(2718281)
In [2]: df = pd.DataFrame(np.random.randint(0, 100, (10, 2)),
...: columns=['jim', 'joe'])
In [3]: ts = pd.Series(5 * np.random.randint(0, 3, 10))
In [4]: df.groupby(ts, as_index=False).max()
Out[4]:
NaN jim joe
0 0 72 83
1 5 77 84
2 10 96 65
with the new release:
.. ipython:: python
np.random.seed(2718281)
df = pd.DataFrame(np.random.randint(0, 100, (10, 2)),
columns=['jim', 'joe'])
df.head()
ts = pd.Series(5 * np.random.randint(0, 3, 10))
df.groupby(ts, as_index=False).max()
- ``groupby`` will not erroneously exclude columns if the column name conflics
with the grouper name (:issue:`8112`):
.. code-block:: python
In [1]: df = pd.DataFrame({'jim': range(5), 'joe': range(5, 10)})
In [2]: gr = df.groupby(df['jim'] < 2)
In [3]: _ = gr.nth(0) # invokes the code path which excludes the 1st column
In [4]: gr.apply(sum) # excludes 1st column from output
Out[4]:
joe
jim
False 24
True 11
.. _whatsnew_0151.enhancements:
Enhancements
~~~~~~~~~~~~
- Added option to select columns when importing Stata files (:issue:`7935`)
- Qualify memory usage in ``DataFrame.info()`` by adding ``+`` if it is a lower bound (:issue:`8578`)
.. _whatsnew_0151.performance:
Performance
~~~~~~~~~~~
.. _whatsnew_0151.experimental:
Experimental
~~~~~~~~~~~~
.. _whatsnew_0151.bug_fixes:
Bug Fixes
~~~~~~~~~
- Bug in ``cut``/``qcut`` when using ``Series`` and ``retbins=True`` (:issue:`8589`)
- Bug in numeric index operations of add/sub with Float/Index Index with numpy arrays (:issue:`8608`)
- Fix ``shape`` attribute for ``MultiIndex`` (:issue:`8609`)
- Bug in ``GroupBy`` where a name conflict between the grouper and columns
would break ``groupby`` operations (:issue:`7115`, :issue:`8112`)