Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Key type issue while fetching images #55

Open
adityajain07 opened this issue Dec 11, 2024 · 0 comments
Open

Key type issue while fetching images #55

adityajain07 opened this issue Dec 11, 2024 · 0 comments

Comments

@adityajain07
Copy link
Contributor

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")
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant