How to create a scatter plot by category [duplicate]
You can use scatter for this, but that requires having numerical values for your key1, and you won’t have a legend, as you noticed. It’s better to just use plot for discrete categories like this. For example: import matplotlib.pyplot as plt import numpy as np import pandas as pd np.random.seed(1974) # Generate Data num = … Read more