File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 57
57
identifier of column that should be used as index of the DataFrame
58
58
convert_missing : boolean, defaults to False
59
59
Flag indicating whether to convert missing values to their Stata
60
- representations. If False, missing values are replaced with nans .
60
+ representations. If False, missing values are replaced with nan .
61
61
If True, columns containing missing values are returned with
62
62
object data types and missing values are represented by
63
63
StataMissingValue objects.
@@ -248,8 +248,9 @@ def _stata_elapsed_date_to_datetime_vec(dates, fmt):
248
248
def convert_year_month_safe (year , month ):
249
249
"""
250
250
Convert year and month to datetimes, using pandas vectorized versions
251
- when the date range falls within the range supported by pandas. Other
252
- wise it falls back to a slower but more robust method using datetime.
251
+ when the date range falls within the range supported by pandas.
252
+ Otherwise it falls back to a slower but more robust method
253
+ using datetime.
253
254
"""
254
255
if year .max () < MAX_YEAR and year .min () > MIN_YEAR :
255
256
return to_datetime (100 * year + month , format = '%Y%m' )
You can’t perform that action at this time.
0 commit comments