空格to_string输出

时间:2019-10-26 19:38:57

标签: python string pandas tostring

当我将to_string传递给过滤器数据框时,这会在输出中生成空白, 我需要没有空格的字符串。

这是代码:

df2['ETS'][df2['APPOINTMENT'] == appointment].to_string(index=False)

输出:

' 10/19/2019'

output

0 个答案:

没有答案