Hi. I have a problem on convesion of object type into category.
My data shape is (1000000, 6)[Date, object,object, object, int64, column_1]
when using the below code, it duplicates last column, the column_1.
before conversion it is in object type, after conversion it shows category but already duplicated.
one more point. the label of the duplicated column contains whitespace in the end of it.
thanks in advance
My data shape is (1000000, 6)[Date, object,object, object, int64, column_1]
when using the below code, it duplicates last column, the column_1.
1 |
df.column_1 = df.column_1.astype( 'category' ) |
before conversion it is in object type, after conversion it shows category but already duplicated.
one more point. the label of the duplicated column contains whitespace in the end of it.
thanks in advance