Skip to content

Commit

Permalink
DOC: update documentation for pandas.Series.dt.is_month_last
Browse files Browse the repository at this point in the history
  • Loading branch information
janelle committed Mar 10, 2018
1 parent 7840d52 commit 232520f
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,32 @@ def freq(self, value):
is_month_end = _field_accessor(
'is_month_end',
'is_month_end',
"Logical indicating if last day of month (defined by frequency)")
"""
Return a boolean indicating if the date is the last day of the month.
Returns
-------
is_month_end : Series of boolean
See Also
--------
is_month_start : Returns a boolean indicating if the date is the first day of the month.
Examples
--------
>>> import pandas as pd
>>> dates = pd.Series(pd.date_range("2018-02-27", periods = 3))
>>> dates
0 2018-02-27
1 2018-02-28
2 2018-03-01
dtype: datetime64[ns]
>>> dates.dt.is_month_end
0 False
1 True
2 False
dtype: bool
""")
is_quarter_start = _field_accessor(
'is_quarter_start',
'is_quarter_start',
Expand Down

0 comments on commit 232520f

Please sign in to comment.