I have a dataset of internet traffic. There is a ports column I want to convert ports to categorical. This is the code I written to it
df2.loc[df2['Src Port'] == 443] = 'HTTPS'
Now I want to category all rests ports into category called 'other'. So how to do that?