@@ -82,7 +82,7 @@ def f(self):
82
82
return result
83
83
84
84
f .__name__ = name
85
- f .__doc__ = docstring
85
+ f .__doc__ = " \n {} \n " . format ( docstring )
86
86
return property (f )
87
87
88
88
@@ -1072,19 +1072,19 @@ def date(self):
1072
1072
1073
1073
return tslib .ints_to_pydatetime (timestamps , box = "date" )
1074
1074
1075
- year = _field_accessor ('year' , 'Y' , "\n The year of the datetime\n " )
1075
+ year = _field_accessor ('year' , 'Y' , "The year of the datetime" )
1076
1076
month = _field_accessor ('month' , 'M' ,
1077
- "\n The month as January=1, December=12 \n " )
1078
- day = _field_accessor ('day' , 'D' , "\n The days of the datetime\n " )
1079
- hour = _field_accessor ('hour' , 'h' , "\n The hours of the datetime\n " )
1080
- minute = _field_accessor ('minute' , 'm' , "\n The minutes of the datetime\n " )
1081
- second = _field_accessor ('second' , 's' , "\n The seconds of the datetime\n " )
1077
+ "The month as January=1, December=12" )
1078
+ day = _field_accessor ('day' , 'D' , "The days of the datetime" )
1079
+ hour = _field_accessor ('hour' , 'h' , "The hours of the datetime" )
1080
+ minute = _field_accessor ('minute' , 'm' , "The minutes of the datetime" )
1081
+ second = _field_accessor ('second' , 's' , "The seconds of the datetime" )
1082
1082
microsecond = _field_accessor ('microsecond' , 'us' ,
1083
- "\n The microseconds of the datetime\n " )
1083
+ "The microseconds of the datetime" )
1084
1084
nanosecond = _field_accessor ('nanosecond' , 'ns' ,
1085
- "\n The nanoseconds of the datetime\n " )
1085
+ "The nanoseconds of the datetime" )
1086
1086
weekofyear = _field_accessor ('weekofyear' , 'woy' ,
1087
- "\n The week ordinal of the year\n " )
1087
+ "The week ordinal of the year" )
1088
1088
week = weekofyear
1089
1089
_dayofweek_doc = """
1090
1090
The day of the week with Monday=0, Sunday=6.
@@ -1129,12 +1129,12 @@ def date(self):
1129
1129
"The name of day in a week (ex: Friday)\n \n .. deprecated:: 0.23.0" )
1130
1130
1131
1131
dayofyear = _field_accessor ('dayofyear' , 'doy' ,
1132
- "\n The ordinal day of the year\n " )
1133
- quarter = _field_accessor ('quarter' , 'q' , "\n The quarter of the date\n " )
1132
+ "The ordinal day of the year" )
1133
+ quarter = _field_accessor ('quarter' , 'q' , "The quarter of the date" )
1134
1134
days_in_month = _field_accessor (
1135
1135
'days_in_month' ,
1136
1136
'dim' ,
1137
- "\n The number of days in the month\n " )
1137
+ "The number of days in the month" )
1138
1138
daysinmonth = days_in_month
1139
1139
_is_month_doc = """
1140
1140
Indicates whether the date is the {first_or_last} day of the month.
0 commit comments