Jan-08-2020, 05:22 PM
(This post was last modified: Jan-08-2020, 05:22 PM by jefsummers.)
First, please enclose your code in Python tags - that will preserve indentation which is sooo important in figuring out Python code.
You have a column in the dataframe that is a timestamp. You need to either drop that column before feeding it to the classifier or find a way to map that to a numeric value if that info is important to your analysis.
Right after you define X and y try
You have a column in the dataframe that is a timestamp. You need to either drop that column before feeding it to the classifier or find a way to map that to a numeric value if that info is important to your analysis.
Right after you define X and y try
X.head()to see what columns you have and what troublesome formats there are.