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

How to correctly open the csv file: Data Skewed #58

Open
neshant opened this issue Sep 4, 2020 · 3 comments
Open

How to correctly open the csv file: Data Skewed #58

neshant opened this issue Sep 4, 2020 · 3 comments

Comments

@neshant
Copy link

neshant commented Sep 4, 2020

Not an issue with code but How do I correctly open/import the csv file in excel the data is skewed due to json in the data which is also a csv data.

@neshant
Copy link
Author

neshant commented Sep 5, 2020

there are three columns in particular that are trouble , I just made a small change to get around opening the file in csv although all columns could do this in case more of the json columns are added.

        try:
            if key == 'executed_notional' or key == 'last_trail_price' or key == 'dollar_based_amount' or key == 'total_notional':
                csv += "\""+str(fields[row][key])+"\""
            else:
                csv += str(fields[row][key])
        except:
            csv += ""

@savingsandloan
Copy link
Contributor

dupe of #53

@pvh1983
Copy link

pvh1983 commented Feb 23, 2021

Thanks a lot. It worked. I took me a while to find out where to insert it so I post it here:
image

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

3 participants