Skip to content

Key type issue while fetching images #55

@adityajain07

Description

@adityajain07

It seems like the newer DwC-A files stores taxonomy keys in a string format. The current command ami-dataset fetch-images results in an empty dataframe if the input keys are in int or float. There are two possible fixes:

  1. Let the keys remain in str format or do not convert it into int.
    keys_list = [int(x) for x in keys_list]
  2. Set the data type of the key columns to int
    occ_df = dwca.pd_read("occurrence.txt", parse_dates=True, on_bad_lines="skip")

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