@@ -82,7 +82,7 @@ def f(self):
8282 return result
8383
8484 f .__name__ = name
85- f .__doc__ = docstring
85+ f .__doc__ = " \n {} \n " . format ( docstring )
8686 return property (f )
8787
8888
@@ -1072,19 +1072,19 @@ def date(self):
10721072
10731073 return tslib .ints_to_pydatetime (timestamps , box = "date" )
10741074
1075- year = _field_accessor ('year' , 'Y' , "\n The year of the datetime\n " )
1075+ year = _field_accessor ('year' , 'Y' , "The year of the datetime" )
10761076 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" )
10821082 microsecond = _field_accessor ('microsecond' , 'us' ,
1083- "\n The microseconds of the datetime\n " )
1083+ "The microseconds of the datetime" )
10841084 nanosecond = _field_accessor ('nanosecond' , 'ns' ,
1085- "\n The nanoseconds of the datetime\n " )
1085+ "The nanoseconds of the datetime" )
10861086 weekofyear = _field_accessor ('weekofyear' , 'woy' ,
1087- "\n The week ordinal of the year\n " )
1087+ "The week ordinal of the year" )
10881088 week = weekofyear
10891089 _dayofweek_doc = """
10901090 The day of the week with Monday=0, Sunday=6.
@@ -1129,12 +1129,12 @@ def date(self):
11291129 "The name of day in a week (ex: Friday)\n \n .. deprecated:: 0.23.0" )
11301130
11311131 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" )
11341134 days_in_month = _field_accessor (
11351135 'days_in_month' ,
11361136 'dim' ,
1137- "\n The number of days in the month\n " )
1137+ "The number of days in the month" )
11381138 daysinmonth = days_in_month
11391139 _is_month_doc = """
11401140 Indicates whether the date is the {first_or_last} day of the month.
0 commit comments