You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xref pandas-dev#10890
Author: Jeff Reback <[email protected]>
Closespandas-dev#15098 from jreback/time_series and squashes the following commits:
d9101bc [Jeff Reback] fix back-compat for < 0.13
ed57bd5 [Jeff Reback] DEPR: remove legacy pd.TimeSeries class in favor of pd.Series
``pd.TimeSeries`` was deprecated officially in 0.17.0, though has only been an alias since 0.13.0. It has
255
+
been dropped in favor of ``pd.Series``. (:issue:``15098).
256
+
257
+
This *may* cause HDF5 files that were created in prior versions to become unreadable if ``pd.TimeSeries``
258
+
was used. This is most likely to be for pandas < 0.13.0. If you find yourself in this situation.
259
+
You can use a recent prior version of pandas to read in your HDF5 files,
260
+
then write them out again after applying the procedure below.
261
+
262
+
.. code-block:: ipython
263
+
264
+
In [2]: s = pd.TimeSeries([1,2,3], index=pd.date_range('20130101', periods=3))
265
+
266
+
In [3]: s
267
+
Out[3]:
268
+
2013-01-01 1
269
+
2013-01-02 2
270
+
2013-01-03 3
271
+
Freq: D, dtype: int64
272
+
273
+
In [4]: type(s)
274
+
Out[4]: pandas.core.series.TimeSeries
275
+
276
+
In [5]: s = pd.Series(s)
277
+
278
+
In [6]: s
279
+
Out[6]:
280
+
2013-01-01 1
281
+
2013-01-02 2
282
+
2013-01-03 3
283
+
Freq: D, dtype: int64
284
+
285
+
In [7]: type(s)
286
+
Out[7]: pandas.core.series.Series
287
+
288
+
249
289
.. _whatsnew_0200.api_breaking.index_map:
250
290
251
291
Map on Index types now return other Index types
@@ -507,7 +547,7 @@ Removal of prior version deprecations/changes
507
547
Similar functionality can be found in the `Google2Pandas <https://github.com/panalysis/Google2Pandas>`__ package.
508
548
- ``pd.to_datetime`` and ``pd.to_timedelta`` have dropped the ``coerce`` parameter in favor of ``errors`` (:issue:`13602`)
509
549
- ``pandas.stats.fama_macbeth``, ``pandas.stats.ols``, ``pandas.stats.plm`` and ``pandas.stats.var``, as well as the top-level ``pandas.fama_macbeth`` and ``pandas.ols`` routines are removed. Similar functionaility can be found in the `statsmodels <shttp://www.statsmodels.org/dev/>`__ package. (:issue:`11898`)
510
-
550
+
- ``Series.is_time_series`` is dropped in favor of ``Series.index.is_all_dates`` (:issue:``)
0 commit comments