Oct-24-2020, 07:41 PM
(This post was last modified: Oct-24-2020, 10:25 PM by Larz60+.
Edit Reason: fixed code tags
)
I am trying to convert numerical data points to categorical names in output. I want it to be labelled as categorical name but I need the raw data to stay numeric for functions elsewhere in the code. I have done this in anothe language (SAS) but I'm having trouble in python. I have found some code to clean up numbers (posted below). I do not get any errrors but it also does not change the output. Note. Please advise.
cleanup_nums = {"Congruency": {1: 'Congruent', 2:'Incongruent'}, "CueState": {1:'No Cue', 2: 'Center Cue', 3:'Spatial Cue' }}