Skip to content

Commit f11bbf2

Browse files
Giftlinjreback
authored andcommitted
DOC: grammatical mistakes (#17512)
1 parent f6d4d70 commit f11bbf2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/io/stata.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
identifier of column that should be used as index of the DataFrame
5858
convert_missing : boolean, defaults to False
5959
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.
6161
If True, columns containing missing values are returned with
6262
object data types and missing values are represented by
6363
StataMissingValue objects.
@@ -248,8 +248,9 @@ def _stata_elapsed_date_to_datetime_vec(dates, fmt):
248248
def convert_year_month_safe(year, month):
249249
"""
250250
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.
253254
"""
254255
if year.max() < MAX_YEAR and year.min() > MIN_YEAR:
255256
return to_datetime(100 * year + month, format='%Y%m')

0 commit comments

Comments
 (0)