Skip to content

Support struct in map_json #45

@mielvds

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")

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