Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,32 @@ def freq(self, value):
is_month_start = _field_accessor(
'is_month_start',
'is_month_start',
"Logical indicating if first day of month (defined by frequency)")
"""
Return a boolean indicating if the date is the first day of the month.

Returns
-------
is_month_start : Series of boolean

See Also
--------
is_month_end : Returns a boolean indicating if the date is the last day
of the month.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next line should be indented:

        is_month_end : Returns a boolean indicating if the date is the last day
            of the month.


Examples
--------
>>> 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_start
0 False
1 False
2 True
dtype: bool
""")
is_month_end = _field_accessor(
'is_month_end',
'is_month_end',
Expand Down