Skip to content

Commit 85e356b

Browse files
committed
Put some code back.
1 parent ddb5f74 commit 85e356b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/io/parsers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,11 +2278,10 @@ def __init__(self, f, **kwds):
22782278
raise ValueError('Only length-1 decimal markers supported')
22792279

22802280
if self.thousands is None:
2281-
self.nonnum = re.compile(
2282-
r'[^-^0-9^{decimal}]+'.format(decimal=self.decimal))
2281+
self.nonnum = re.compile('[^-^0-9^%s]+' % self.decimal)
22832282
else:
2284-
self.nonnum = re.compile(r'[^-^0-9^{thousands}^{decimal}]+'.format(
2285-
thousands=self.thousands, decimal=self.decimal))
2283+
self.nonnum = re.compile('[^-^0-9^%s^%s]+' % (self.thousands,
2284+
self.decimal))
22862285

22872286
def _set_no_thousands_columns(self):
22882287
# Create a set of column ids that are not to be stripped of thousands

0 commit comments

Comments
 (0)