Convert string to float

Hi all, I am new to Python coding and struggling with data cleansing as receiving below errors during regression testing

ValueError: could not convert string to float: ‘’
TypeError: Encoders require their input to be uniformly strings or numbers. Got [‘int’, ‘str’]

Can someone please help me how to fix these errors?


Hey Amit,

Firstly, check your str->float function. [‘int’, ‘str’] could not convert string to float: ‘’ Ensure you’re following appropriate syntax for python arithmetic functions.
Without an actual code snippet, it’s difficult to debug this with you! I suggest you look into Stack Overflow for questions relating to Python syntax/lang, you will likely resolve your issue substantially faster.