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 39531c1 commit 226b72dCopy full SHA for 226b72d
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 = repr(result)
+ result = f"'{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 = repr(as_escaped_string(thing))
+ result = f"'{as_escaped_string(thing)}'"
233
else:
234
result = as_escaped_string(thing)
235
0 commit comments