Skip to content

Pickle alternatives #17

@HagaiHargil

Description

@HagaiHargil

Pickle is not safe. An alternative implementation may use PyArrow instead:

import pyarrow as pa
import pandas as pd

pa.serialize_to(dict_of_data, r'/path/to/file.a')
data = pa.deserialize_from(r'/path/to/file.a', pd.DataFrame)
type(data)  # dict

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions