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 Convert IonPyDict into Native Python dict? #364

Open
MacHu-GWU opened this issue Aug 2, 2024 · 1 comment
Open

How to Convert IonPyDict into Native Python dict? #364

MacHu-GWU opened this issue Aug 2, 2024 · 1 comment

Comments

@MacHu-GWU
Copy link

IonPyDict is the returned type of loads() method. However, a lot of data library like pandas, polars works with native python library only, is there a convenient way to convert all value of IonPyDict into native Python value?

@rmarrowstone
Copy link
Contributor

For context, this appears to be a follow-up from #362

My suggestion there was to use the IonPyValueModel.STRUCT_AS_STD_DICT which should result in Ion Structs deserializing to IonPyStdDict objects (which inherit from dict).

If that solution doesn't work for you, please help me understand why not and what you need instead.

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