#UndefinedError: 'str object' has no attribute 'role' when mapping dataset.
1 messages · Page 1 of 1 (latest)
How am I supposed to share a csv file :/
here was my csv file in txt format.... because I can't upload it in csv...
I was running this colab:
https://colab.research.google.com/drive/1T5-zKWM_5OD21QHwXHiV9ixTRR7k3iB9?usp=sharing#scrollTo=gGFzmplrEy9I
For a certain reason, when it comes to mapping the dataset it just doesn't work. It looks like the elements are being interpreted as strings.
When I print the dataset it looks like this
this is probably an easy python fix... but what's causing this in the first place? I don't really want to have this issue again :/
Is it an issue with my csv file?
Solved by @jaunty meadow (big thanks)