Skip to content

Commit dddb57c

Browse files
committed
whatsnew update
1 parent dda5439 commit dddb57c

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

doc/source/whatsnew/v0.23.0.txt

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,6 @@ Returning a ``Series`` allows one to control the exact return structure and colu
592592

593593
df.apply(lambda x: Series([1, 2, 3], index=['D', 'E', 'F']), axis=1)
594594

595-
596-
.. _whatsnew_0230.api_breaking.build_changes:
597-
598595
.. _whatsnew_0230.api_breaking.end_time:
599596

600597
Time values in ``dt.end_time`` and ``to_timestamp(how='end')``
@@ -608,30 +605,25 @@ or :func:`PeriodIndex.to_timestamp()` with ``how='end'`` (:issue:`17157`)
608605
Previous Behavior:
609606

610607
.. code-block:: ipython
611-
612608
In [2]: p = pd.Period('2017-01-01', 'D')
613609
In [3]: pi = pd.PeriodIndex([p])
614610

615-
In [4]: pd.Series(p).dt.end_time[0]
611+
In [4]: pd.Series(pi).dt.end_time[0]
616612
Out[4]: Timestamp(2017-01-01 00:00:00)
617613

618-
In [5]: pi.end_time[0]
619-
Out[5]: Timestamp(2017-01-01 00:00:00)
620-
621-
In [6]: pi.to_timestamp(how='end')
622-
Out[6]: Timestamp(2017-01-01 00:00:00)
614+
In [5]: p.end_time
615+
Out[5]: Timestamp(2017-01-01 23:59:59.999999999)
623616

624617
.. ipython:: python
625618

626619
p = pd.Period('2017-01-01', 'D')
627620
pi = pd.PeriodIndex([p])
628621

629-
pd.Series(p).dt.end_time[0]
630-
631-
pi.end_time[0]
622+
pd.Series(pi).dt.end_time[0]
632623

633-
pi.to_timestamp(how='end')
624+
p.end_time
634625

626+
.. _whatsnew_0230.api_breaking.build_changes:
635627

636628
Build Changes
637629
^^^^^^^^^^^^^

0 commit comments

Comments
 (0)