Skip to content

Key type issue while fetching images #55

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

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