File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -1756,7 +1756,32 @@ def freq(self, value):
1756
1756
is_month_end = _field_accessor (
1757
1757
'is_month_end' ,
1758
1758
'is_month_end' ,
1759
- "Logical indicating if last day of month (defined by frequency)" )
1759
+ """
1760
+ Return a boolean indicating if the date is the last day of the month.
1761
+
1762
+ Returns
1763
+ -------
1764
+ is_month_end : Series of boolean
1765
+
1766
+ See Also
1767
+ --------
1768
+ is_month_start : Returns a boolean indicating if the date is the first day of the month.
1769
+
1770
+ Examples
1771
+ --------
1772
+ >>> import pandas as pd
1773
+ >>> dates = pd.Series(pd.date_range("2018-02-27", periods = 3))
1774
+ >>> dates
1775
+ 0 2018-02-27
1776
+ 1 2018-02-28
1777
+ 2 2018-03-01
1778
+ dtype: datetime64[ns]
1779
+ >>> dates.dt.is_month_end
1780
+ 0 False
1781
+ 1 True
1782
+ 2 False
1783
+ dtype: bool
1784
+ """ )
1760
1785
is_quarter_start = _field_accessor (
1761
1786
'is_quarter_start' ,
1762
1787
'is_quarter_start' ,
You can’t perform that action at this time.
0 commit comments