@@ -12,7 +12,8 @@ DataFrame.
12
12
New features
13
13
~~~~~~~~~~~~
14
14
15
- - Can specify multiple sort orders in DataFrame/Series.sort/sort_index (GH928_)
15
+ - `Series.sort`, `DataFrame.sort`, and `DataFrame.sort_index` can now be
16
+ specified in a per-column manner to support multiple sort orders (GH928_)
16
17
17
18
.. ipython:: python
18
19
@@ -21,7 +22,9 @@ New features
21
22
df.sort(['A', 'B'], ascending=[1, 0])
22
23
23
24
24
- - New `top` and `bottom` options for handling NAs in rank (GH1508_, GH2159_)
25
+ - `DataFrame.rank` now supports additional argument values for the
26
+ `na_option` parameter so missing values can be assigned either the largest
27
+ or the smallest rank (GH1508_, GH2159_)
25
28
26
29
.. ipython:: python
27
30
@@ -36,7 +39,8 @@ New features
36
39
df.rank(na_option='bottom')
37
40
38
41
39
- - Add `where` and `mask` functions to DataFrame (GH2109_, GH2151_)
42
+ - DataFrame has new `where` and `mask` methods to select values according to a
43
+ given boolean mask (GH2109_, GH2151_)
40
44
41
45
.. ipython:: python
42
46
@@ -47,18 +51,27 @@ New features
47
51
df.mask(df < 0)
48
52
49
53
50
- - Add `at_time` and `between_time` functions to DataFrame (GH2149_)
51
54
- Enable referencing of Excel columns by their column names (GH1936_)
52
- - DataFrame.dot can accept ndarrays (GH2042_)
53
- - Make .drop(...) work with non-unique indexes (GH2101_)
54
- - Support negative periods in Panel.shift (GH2164_)
55
- - Support unary ~ in DataFrame (GH2110_)
55
+
56
+ .. ipython:: python
57
+
58
+ xl = ExcelFile('data/test.xls')
59
+ xl.parse('Sheet1', index_col=0, parse_dates=True,
60
+ parse_cols='A:D')
61
+
62
+
63
+ - Existing TimeSeries methods `at_time` and `between_time` were added to
64
+ DataFrame (GH2149_)
65
+ - DataFrame.dot can now accept ndarrays (GH2042_)
66
+ - DataFrame.drop now supports non-unique indexes (GH2101_)
67
+ - Panel.shift now supports negative periods (GH2164_)
68
+ - DataFrame now support unary ~ operator (GH2110_)
56
69
57
70
API changes
58
71
~~~~~~~~~~~
59
72
60
- - Upsampling period index "spans" intervals. Example: annual periods
61
- upsampled to monthly will span all months in each year
73
+ - Upsampling data with a PeriodIndex will result in a higher frequency
74
+ TimeSeries that spans the original time window
62
75
63
76
.. ipython:: python
64
77
@@ -69,7 +82,7 @@ API changes
69
82
s.resample('M')
70
83
71
84
72
- - Period.end_time will yield timestamp at last nanosecond in the interval
85
+ - Period.end_time now returns the last nanosecond in the time interval
73
86
(GH2124_, GH2125_, GH1764_)
74
87
75
88
.. ipython:: python
@@ -78,6 +91,7 @@ API changes
78
91
79
92
p.end_time
80
93
94
+
81
95
- File parsers no longer coerce to float or bool for columns that have custom
82
96
converters specified (GH2184_)
83
97
@@ -90,7 +104,7 @@ API changes
90
104
"""
91
105
92
106
from cStringIO import StringIO
93
-
107
+
94
108
read_csv(StringIO(data), converters={'A' : lambda x: x.strip()})
95
109
96
110
0 commit comments