I'm testing my data using the SVM Classifier. And my dataset is in a form of text and I'm trying to transform it into float.
I have data that may look like this: dataset
Transform as float
df.columns = df('columns').str.rstrip('%').astype('float') / 100.0
TypeError                                 Traceback (most recent call last)
<ipython-input-66-74921537411d> in <module>
      1 # Transform as float
----> 2 df.columns = df('columns').str.rstrip('%').astype('float') / 100.0
      3 
TypeError: 'DataFrame' object is not callable
 
    