I am a beginner, please explain what this code do precisely?
DataFrame['X'] = pd.Categorical(DataFrame['X']) DataFrame['X'] = DataFrame['X'].cat.codes
please explain what this code does precisely?
1.4m articles
1.4m replys
5 comments
57.0k users