Trying to interface my code with a csv file?

I am a newbie and trying to code my first chatbot for a website. I have been training my bot and have done most coding and some stories. However, for the bot to get proper responses for the questions, it should be able to get the data from a csv file that i have created (so, it should be able to run some query on the csv to get the right response). I dont know how I can interface the csv DB with my code.

Can someone please help?