set_abundance#

Note

Abundance information is not required by the ALA, but it is nice to have.

One of the functions you can use to check your data is set_abundance(). This function aims to check that you have the following:

  • individualCount: the number of individuals observed of a particular species

It can also (optionally) can check the following:

  • organismQuantity: a description of your individual counts

  • organismQuantityType: describes what your organismQuantity is

For this exercise, we have included an extra column from the example dataframe titled 'count':

>>> import galaxias
>>> import pandas as pd
>>> occ = pd.DataFrame(
...     {'species': ['Callocephalon fimbriatum', 'Eolophus roseicapilla'],
...     'latitude': [-35.310, '-35.273'],
...     'longitude': [149.125, 149.133],
...     'date': ['14-01-2023', '15-01-2023'],
...     'status': ['present', 'present'],
...     'count': [2,1]}
... )
>>> my_dwca = my_dwca.dwca(occurrences=occ)

If you wish to follow with your own dataset in a csv file, use pandas to read in your csv file:

>>> import pandas as pd
>>> my_dwca = my_dwca.dwca(occurrences='<FILENAME>.csv')

specifying individualCount#

You can also specify the number of individuals you observed with the individualCount argument.

>>> my_dwca.set_abundance(dataframe=occ,individualCount='count')
>>> my_dwca.occurrences.head()
                    species latitude  longitude        date   status  individualCount
0  Callocephalon fimbriatum   -35.31    149.125  14-01-2023  present                2
1     Eolophus roseicapilla  -35.273    149.133  15-01-2023  present                1

Other functions#

To learn more about how to use other functions, go to

Optional functions:

Creating Unique IDs:

Passing Dataset: