We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98c5b88 commit f1ded8cCopy full SHA for f1ded8c
pandas/io/tests/parser/python_parser_only.py
@@ -185,3 +185,19 @@ def test_temporary_file(self):
185
result = self.read_csv(new_file, sep=r"\s*", header=None)
186
expected = DataFrame([[0, 0]])
187
tm.assert_frame_equal(result, expected)
188
+
189
+ def test_skipfooter_with_decimal(self):
190
+ # see gh-6971
191
+ data = '1#2\n3#4'
192
+ expected = DataFrame({'a': [1.2, 3.4]})
193
194
+ result = self.read_csv(StringIO(data), names=['a'],
195
+ decimal='#')
196
+ tm.assert_frame_equal(result, expected)
197
198
+ # the stray footer line should not mess with the
199
+ # casting of the first t wo lines if we skip it
200
+ data = data + '\nFooter'
201
202
+ decimal='#', skipfooter=1)
203
0 commit comments