We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9894c28 commit ff3e5d2Copy full SHA for ff3e5d2
pandas/io/formats/format.py
@@ -1703,7 +1703,7 @@ def _formatter(x):
1703
x = Timedelta(x)
1704
result = x._repr_base(format=format)
1705
if box:
1706
- result = f"'{result}'"
+ result = repr(result)
1707
return result
1708
1709
return _formatter
pandas/io/formats/printing.py
@@ -229,7 +229,7 @@ def as_escaped_string(
229
max_seq_items=max_seq_items,
230
)
231
elif isinstance(thing, str) and quote_strings:
232
- result = f"'{as_escaped_string(thing)}'"
+ result = repr(as_escaped_string(thing))
233
else:
234
result = as_escaped_string(thing)
235
0 commit comments