pandas dataframe convert column type to string or categorical
You need astype: For converting to categorical: Another solution is Categorical: Sample with data:
You need astype: For converting to categorical: Another solution is Categorical: Sample with data: