I have a dataset which contains salary of different employee id in different years. The sample data looks like one below:
| Id | 2001 | 2002 | 2003 | 2004 | 2005 | 2006 |
|----|-------|-------|-------|-------|-------|-------|
| 1 | 10000 | 10586 | 11646 | 12324 | 15668 | 16447 |
| 2 | 43549 | 45234 | 51233 | 52345 | 53344 | 56544 |
| 3 | 34252 | 35563 | 36433 | 36658 | 37435 | 37799 |
| 4 | 43534 | 45473 | 47574 | 48755 | 49776 | 49876 |
I want to create a line chart in python plotly for last 4 years by writing a function so that when new data comes, I don't have to explicitly mention last 4 years. The x axis axis would be the years, y axis would be salary and different line charts would represent the Id.
