how to convert contionous data into categorical data in python

Solutions on MaxInterview for how to convert contionous data into categorical data in python by the best coders in the world

showing results for - "how to convert contionous data into categorical data in python"
Janet
30 Mar 2018
1pd.cut(df.Age,bins=[0,2,17,65,99],labels=['Toddler/Baby','Child','Adult','Elderly'])
2# where bins is cut off points of bins for the continuous data 
3# and key things here is that no. of labels is always less than 1
queries leading to this page
how to convert categorical data to numerical data in pythonhow to change categorical variables to numeric in pythonchanging categorical data to numeric in pythonneed to encode categorical data in pythonhow to encode categorical data in pythonhow to convert categorical variable into numeric in pythonhow to convert numeric variable to categorical in pythonhow to transform categorical variables in to numeric in pythonto categorical pythonconverting numerical data to two categorical pythonconverting numerical data to categorical data in pythonhow to encode categorical sentence data in pythonchange categorical variables to numeric in pythonto categorical in python how to convert normal data to categorical data in python to convert categorical data to numericalhow to convert numerical data to categorical data in pythonhow to pass categorical data to numerical pythonhow to change categorical data to numerical data pyrthonhow to convert categorical data to numerical data in python pandasconvert into categorical variables in pythonchange categorical variable to numeric in pythonhandle categorical data using pythonfunction to change categorical data into numeric in pythonconverting categorical data to numerical data pythonhow to convert categorical column to numeric in pythonpython encode categorical data as numericalhow to simulate numerical and categorical data in pythonturn into categorical pythonencode categorical data to numerical data pythonchange categorical values pythonconvert numeric variable to categorical in pythonpython convert string to categorical variablehandle categorical data pythonhow to plot data with all of categorical values in pythonhow to convert continuous data to categorical data in pythoncategorical data to numerical data pythonhow to work with categorical data in pythonhow to convert categorical data into numeric in pythontransformation of numeric variables to categorical in pythonhow to change value of categorical variable in pythonhow to turn a column values into categorical data pythonconvert to categorical pythonhow to impute categorical data in pythonconverting categorical data to numerical features in pythonuse of to categorical in pythonhow to create a new categorical variable dataset in pythonstring to categorical pandaspython convert int to categoricalturn categorical data to numeric pythonhow to convert colum into categorical data in pythonhow to change categorical variable value in pythonconvert column into categorical data pythoncategorical variables to numeric in pythonencode categorical data with numeric data in pythontransform categorical variables to numeric pythonhow to convert contionous data into categorical data in python