Version 0.15.2 (December 12, 2014) — pandas 2.2.3 documentation (original) (raw)

This is a minor release from 0.15.1 and includes a large number of bug fixes along with several new features, enhancements, and performance improvements. A small number of API changes were necessary to fix existing bugs. We recommend that all users upgrade to this version.

API changes#

jim joe
0 x 0.126970
x 0.966718
1 z 0.260476
y 0.897237
[4 rows x 1 columns]
In [3]: df.index.lexsort_depth
Out[3]: 1

in prior versions this would raise a KeyError

will now show a PerformanceWarning

In [4]: df.loc[(1, 'z')]
Out[4]:
jolie
jim joe
1 z 0.260476
[1 rows x 1 columns]

lexically sorting

In [5]: df2 = df.sort_index()
In [6]: df2
Out[6]:
jolie
jim joe
0 x 0.126970
x 0.966718
1 y 0.897237
z 0.260476
[4 rows x 1 columns]
In [7]: df2.index.lexsort_depth
Out[7]: 2
In [8]: df2.loc[(1,'z')]
Out[8]:
jolie
jim joe
1 z 0.260476
[1 rows x 1 columns]

this assignment was inconsistent

In [7]: data.y = 5
Old behavior:
In [6]: data.y
Out[6]: 2
In [7]: data['y'].values
Out[7]: array([5, 5, 5])
New behavior:
In [8]: data.y
Out[8]: 5
In [9]: data['y'].values
Out[9]: array([2, 4, 6])

Enhancements#

Categorical enhancements:

Other enhancements:

1 False
dtype: bool

0 True True True True
1 True False True True
2 True True True True
3 False True False True
4 True True True True

Performance#

Bug fixes#

Contributors#

A total of 49 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time.