Python categorical variables NaN while creating box-plot
Python categorical variables NaN while creating box-plot Question: After I successfully created categorical values, their result is NaN. I used this command: df[‘Memory’]= pd.cut(pd.to_numeric(df[‘RAM ‘], errors="coerce"), [0,4,8,12], include_lowest=True, labels=[‘Basic’, ‘Intermediate’, ‘Advaced’]) After running df.head() here’s the table: When I try to box-plot them: sns.boxplot(x=’Memory’, y=’Price’, data=df[‘RAM ‘] = pd.to_numeric(df[‘RAM ‘], errors="coerce") ; df[‘Memory’]= pd.cut(df[‘RAM ‘], …