Skip to content
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

New Feature Request: Allow special character for delimiter when reading CSV files #50

Open
asokratis opened this issue Nov 10, 2022 · 0 comments

Comments

@asokratis
Copy link

asokratis commented Nov 10, 2022

reader = csv.reader(item_file)

change it to

reader = csv.reader(item_file, delimiter=delimiter_character)

The comma by default is not a very strong delimiter especially with how cloud databases export these data in a dirty way.

Ideally, I would want to pass the delimiter character as a parameter when I use the import_events function.

m.import_events('mixpanel_uploads/test_file.csv',timezone_offset=0, delimiter_character='\x1f')

As a short term workaround, I tried to override the class and function of _list_from_items_filename to apply the changes and it did not work (is it because it is a @staticmethod?), so I had to edit the actual source code of the library I installed in the end and that seemed to do the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant