-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting this error: original_activities_str = row["activities"] KeyError: 'activities' #25
Comments
Thanks I'll look into this |
The CSV looks badly formatted and I can't tell if editing with Excel caused that. Can you send your original CSV and I can see if the issue is there? When using I pushed some code to help you with debugging. Here is my result for
|
I also added a bit so that if activities column is missing, it logs the columns it can see. |
I'll check if my csv will work this time, but here's the original file with no modifications EDIT: I can report that this .csv + your code fixes worked. I created I had one problem with What is was: What I added: I happen to have an issue with |
So, I had the same encoding issue with
|
Thanks I'll look at adding the latin encoding myself. Thanks for your file. Regarding your last comment - the issue is you appear to have two records with the exact same date and time. Would you be willing to change one of your records for 26 Sep with a different time and then run your export again, to avoid that? |
I found a way to stop the duplicate error https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.set_index.html Will you review PR #27 for me please? |
Also for the unicode error for The error on StackOverflow was for Python 2. Are you on Python 3? If not, can you make sure you run on Python 3 on master and see if the error goes away? |
Not sure what this is about. I had another error shown to me in a .csv that I edited with Excel. This one, however, is a .csv that I edited with Excel without transforming the data with a PowerQuery, just used Ctrl + F to replace some of the strings.
(venv) Tet@DESKTOP: make csv
Here's my file for debugging:
Additional information:
Windows 10
Python 3.9.10
pip 21.2.4
GNU make 4.3
The text was updated successfully, but these errors were encountered: