-3

1[![2[![3]2]3

I need to convert float data to use decsition tree, every time I apply label encoder an error emerges: argument must be a string or number

Mero_vic280
  • 207
  • 1
  • 3
  • 10
  • Does this answer your question? [Fillna in multiple columns in place in Python Pandas](https://stackoverflow.com/questions/34913590/fillna-in-multiple-columns-in-place-in-python-pandas) – Evan Jan 04 '20 at 16:03

1 Answers1

0

You can use DataFrame.fillna to fill the nan's. Try df=df.fillna(df.mean())

codeblooded
  • 320
  • 1
  • 9