'Python Spreadsheet needs to output data based off of a column

I’m currently working with Python and Pandas to analyze a spreadsheet I’ve made. What i’m trying to accomplish is having a user input of a year, which will be from 1949-2022, and having the program rely on the spreadsheet to input the data from that year. There is one year column, and 5 data columns. How can I make it so the 5 data columns are outputted when a user inputs a value found in the year column?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source