I have two columns: genres (more than 10 unique) and price and I want to compare them using scatter plot. How can I write string names in x axis?
price 2.99 3.54 7.00 and so on
genre fiction drama psychology and so on
Another option: convert string to category and somehow convert category numbers to string during graphing. Is it possible?
df['genre'] = df['genre'].astype("category").cat.codes
Plot = df.plot.scatter(x='genre',
y='price',
c='DarkBlue')