Hello, You can do like the following.
import csv
class ActionHelloWorld(Action):
def name(self) -> Text:
return "action_hello_world"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
#Get Input from user
limit = tracker.latest_message['text'].
with open('location for your csv //Test.csv', 'r') as file:
reader = list(csv.reader(file))
for row in reader[:limit]:
print("In Row")
dispatcher.utter_message(text=row[1])
return []
It is not the same code but you will get the idea.
Yes, you can use Pandas library in rasa.
I hope this helps!!