Caroline
Caroline

Reputation: 167

ValueError: could not convert string to float: 'singlet'

I have this data in csv file which a column has string value (prediction column). How do I rectify the ValueError so that I can read the file?'enter image description here

Code I attempted:

adata['prediction'].replace('singlet').astype(float)

Upvotes: 0

Views: 51

Answers (0)

Related Questions