Creating a custom action by extracting data from excel

I am working on a College Information Chatbot which provides the details about the faculties of our institution. I have the data in excel file instead of an api. How can create a custom action to do this?

You need to study a python library that works with excel, check

Is there any example code availabale for a custom action in rasa that uses this library?

Yes, github is your best friend in these cases.