0

I am trying to efficiently plot the number of orders in a seaborn line plot. Here the x-axis should be the date, the y-axis the number_of_orders and there should be a total of 12 lines that correspond to each individual group.

The data I'm working with looks like this. It is a multi index pandas dataframe, where there are several groups for each single date.

enter image description here

Is there an easy way of doing this?

An example on how I want it to look like is this: enter image description here

1 Answer 1

1

try something like this:

sns.lineplot(data=yourDF, x="Date", y="number of orders", hue="Group")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.