Skip to content

Support struct in map_json #45

Description

@mielvds

In continuation of #42, could a polars struct be allowed as input for map_json or maybe a map_struct? When I have a JSON as part of a dataframe, for instance by using df = pl.read_json(file_path), I feel like it's too much encoding/decoding to json.

This would allow something like

df = pl.read_json(file_path)
s = df.get_column("Results")
m = Model()
m.map_json(s, graph="urn:graph:tmp")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions