标签: python string pandas tostring
当我将to_string传递给过滤器数据框时,这会在输出中生成空白, 我需要没有空格的字符串。
这是代码:
df2['ETS'][df2['APPOINTMENT'] == appointment].to_string(index=False)
输出:
' 10/19/2019'