Skip to content

issue saving mismatched type to parquet #112

@bl-young

Description

@bl-young

e.g. the following code, where eGRID is passed as int instead of string will generate an error when saving the inventory

import stewicombo
df = stewicombo.combineInventoriesforFacilitiesinBaseInventory("GHGRP", {"NEI":"2018","GHGRP":"2018", "eGRID":2018}, remove_overlap=True)
stewicombo.saveInventory('my_file', df, {"NEI":"2018","GHGRP":"2018", "eGRID":2018})

pyarrow.lib.ArrowTypeError: ("Expected bytes, got a 'int' object", 'Conversion failed for column Year with type object')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions