forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv0.18.0.txt
198 lines (78 loc) · 3.19 KB
/
v0.18.0.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
.. _whatsnew_0180:
v0.18.0 (January ??, 2016)
--------------------------
This is a major release from 0.17.1 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:
Check the :ref:`API Changes <whatsnew_0180.api>` and :ref:`deprecations <whatsnew_0180.deprecations>` before updating.
.. contents:: What's new in v0.18.0
:local:
:backlinks: none
.. _whatsnew_0180.enhancements:
New features
~~~~~~~~~~~~
.. _whatsnew_0180.enhancements.other:
Other enhancements
^^^^^^^^^^^^^^^^^^
- Handle truncated floats in SAS xport files (:issue:`11713`)
- ``read_excel`` now supports s3 urls of the format ``s3://bucketname/filename`` (:issue:`11447`)
.. _whatsnew_0180.enhancements.rounding:
Datetimelike rounding
^^^^^^^^^^^^^^^^^^^^^
``DatetimeIndex``, ``Timestamp``, ``TimedeltaIndex``, ``Timedelta`` have gained the ``.round()`` method for datetimelike rounding. (:issue:`4314`)
Naive datetimes
.. ipython:: python
dr = pd.date_range('20130101 09:12:56.1234', periods=3)
dr
dr.round('s')
# Timestamp scalar
dr[0]
dr[0].round('10s')
Tz-aware are rounded in local times
.. ipython:: python
dr = dr.tz_localize('US/Eastern')
dr
dr.round('s')
Timedeltas
.. ipython:: python
t = timedelta_range('1 days 2 hr 13 min 45 us',periods=3,freq='d')
t
t.round('10min')
# Timedelta scalar
t[0]
t[0].round('2h')
In addition, ``.round()`` will be available thru the ``.dt`` accessor of ``Series``.
.. ipython:: python
s = Series(dr)
s
s.dt.round('D')
.. _whatsnew_0180.api:
.. _whatsnew_0180.api_breaking:
Backwards incompatible API changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Other API Changes
^^^^^^^^^^^^^^^^^
.. _whatsnew_0180.deprecations:
Deprecations
^^^^^^^^^^^^
.. _whatsnew_0180.prior_deprecations:
Removal of prior version deprecations/changes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. _whatsnew_0180.performance:
Performance Improvements
~~~~~~~~~~~~~~~~~~~~~~~~
- Improved performance of ``andrews_curves`` (:issue:`11534`)
.. _whatsnew_0180.bug_fixes:
Bug Fixes
~~~~~~~~~
- Bug in ``GroupBy.size`` when data-frame is empty. (:issue:`11699`)
- Bug in ``Timedelta.round`` with negative values (:issue:`11690`)
- Bug in ``.loc`` against ``CategoricalIndex`` may result in normal ``Index`` (:issue:`11586`)
- Bug groupby on tz-aware data where selection not returning ``Timestamp`` (:issue:`11616`
- Bug in ``pd.read_clipboard`` and ``pd.to_clipboard`` functions not supporting Unicode; upgrade included ``pyperclip`` to v1.5.15 (:issue:`9263`)
- Bug in timezone info lost when broadcasting scalar datetime to ``DataFrame`` (:issue:`11682`)
- Bug in parsing timezone offset strings with non-zero minutes (:issue:`11708`)
- Bug in ``.loc`` result with duplicated key may have ``Index`` with incorrect dtype (:issue:`11497`)
- Bug in ``pd.rolling_median`` where memory allocation failed even with sufficient memory (:issue:`11696`)
- Bug in ``df.replace`` while replacing value in mixed dtype ``Dataframe`` (:issue:`11698`)