Python Scatter Plot Categorical Data, … But you can use the following code to create a scatter plot with categorical data.