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

conversion from JSON to DataFrame #23

Open
DeliciousHair opened this issue Dec 22, 2016 · 0 comments
Open

conversion from JSON to DataFrame #23

DeliciousHair opened this issue Dec 22, 2016 · 0 comments

Comments

@DeliciousHair
Copy link
Contributor

DeliciousHair commented Dec 22, 2016

This (from _panalysis_ga.py)

            for row in rows:
                ...
                drow = {}
                for i, c in enumerate(cols):
                    drow.update({c : d[i]})
                    
                df = pd.concat((df, pd.DataFrame(drow, index=[0])),
                               ignore_index=True)

is unforgivably awful, as it will take far too long to convert a decent size dataset. This needs to be done as a block operation, but I'm not sure how to parse the object from GA efficiently.

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