Skip to content

Commit bfd520d

Browse files
committed
Update comment per @gfyoung comment
1 parent b5c2b48 commit bfd520d

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

pandas/tests/io/test_stata.py

+9-11
Original file line numberDiff line numberDiff line change
@@ -1333,18 +1333,16 @@ def test_set_index(self):
13331333
@pytest.mark.parametrize(
13341334
'column', ['ms', 'day', 'week', 'month', 'qtr', 'half', 'yr'])
13351335
def test_date_parsing_ignores_format_details(self, column):
1336-
"""
1337-
Test that display formats are ignored when determining if a numeric
1338-
column is a date value.
1339-
1340-
All date types are stored as numbers and format associated with the
1341-
column denotes both the type of the date and the display format.
1342-
1343-
STATA supports 9 date types which each have distinct units. We test 7
1344-
of the 9 types, ignoring %tC and %tb. %tC is a variant of %tc that
1345-
accounts for leap seconds and %tb relies on STATAs business calendar.
1346-
"""
13471336
# GH 17797
1337+
# Test that display formats are ignored when determining if a numeric
1338+
# column is a date value.
1339+
#
1340+
# All date types are stored as numbers and format associated with the
1341+
# column denotes both the type of the date and the display format.
1342+
#
1343+
# STATA supports 9 date types which each have distinct units. We test 7
1344+
# of the 9 types, ignoring %tC and %tb. %tC is a variant of %tc that
1345+
# accounts for leap seconds and %tb relies on STATAs business calendar.
13481346
df = read_stata(self.stata_dates)
13491347
unformatted = df.loc[0, column]
13501348
formatted = df.loc[0, column + "_fmt"]

0 commit comments

Comments
 (0)