| Date | Train Number | Station 1 | Station 2 | Equipment Available? |
|---|---|---|---|---|
| 2022-06-16 | 1111 | North | Central | Y |
| 2022-06-20 | 1111 | North | Central | Y |
| 2022-06-01 | 2222 | North | South | Y |
| 2022-06-02 | 2222 | North | South | Y |
| 2022-06-03 | 2222 | North | South | Y |
| 2022-06-04 | 2222 | North | South | Y |
| 2022-06-05 | 2222 | North | South | Y |
| 2022-06-06 | 2222 | North | South | Y |
| 2022-06-07 | 2222 | North | South | Y |
| 2022-06-08 | 2222 | North | South | Y |
I have a Pandas dataframe that looks like the one above that is sorted by Train Number and then Date. I would like to print a simple Python statement that says:
"For Train Number 1111 North to Central, we have equipment available on June 16th and June 20th.
For Train Number 2222 North to South, we have equipment available from June 1st to June 8th."
How am I able to do this?????