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

Reading output into a pandas dataframe #2

Closed
keluc opened this issue Jun 30, 2016 · 4 comments
Closed

Reading output into a pandas dataframe #2

keluc opened this issue Jun 30, 2016 · 4 comments

Comments

@keluc
Copy link

keluc commented Jun 30, 2016

With the method from_records one can use pandas.
Such an example in the documentation seems useful.

result = xmldataset.parse_using_profile(xml, profile)
df = pd.DataFrame.from_records(result['...'])
@spurin
Copy link
Owner

spurin commented Jun 30, 2016

Thanks keluc, great point. I'll add this in. Have you any further context of where you've used this in pandas that I can use in the example?

@keluc
Copy link
Author

keluc commented Jun 30, 2016

I used your base example with the list of colleagues to try xmldataset out and I asked myself if this would be easy to integrate with pandas, which was simple to do:
....
df = pd.DataFrame.from_records(result['colleagues'])

(ps. there is an open pandas issue)

@keluc keluc closed this as completed Jun 30, 2016
@keluc keluc reopened this Jun 30, 2016
@spurin
Copy link
Owner

spurin commented Oct 12, 2016

Marking this as enhancement given that it enhances the documentation, thanks @keluc

@spurin
Copy link
Owner

spurin commented Oct 13, 2016

Added to 1.0.1

@spurin spurin closed this as completed Oct 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants