I have a dataframe with text value and int inside.
I apply df.to_string()
without a problem, then I call a the get_value()
function on it and get rid of the possible space at the beginning and at the end:
df.get_value(index,column).rstrip(' ').lstrip(' ')
This works fine, however if the value type is int, i got this error :
AttributeError: 'numpy.int64' object has no attribute 'rstrip'
Why does df.to_string() not work ?