Included Databases
International Soundscape Database (ISD)
load
load()
Load example "ISD" [1]_ csv file to DataFrame
RETURNS | DESCRIPTION |
---|---|
DataFrame
|
dataframe of ISD data |
References
.. [1] Mitchell, Andrew, Oberman, Tin, Aletta, Francesco, Erfanian, Mercede, Kachlicka, Magdalena, Lionello, Matteo, & Kang, Jian. (2022). The International Soundscape Database: An integrated multimedia database of urban soundscape surveys -- questionnaires with acoustical and contextual information (0.2.4) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.6331810
Source code in soundscapy/databases/isd.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
validate
validate(df, paq_aliases=_PAQ_ALIASES, allow_paq_na=False, verbose=1, val_range=(1, 5))
Performs data quality checks and validates that the dataset fits the expected format
PARAMETER | DESCRIPTION |
---|---|
df |
ISD style dataframe, incl PAQ data
TYPE:
|
paq_aliases |
list of PAQ names (in order) or dict of PAQ names with new names as values, by default None
TYPE:
|
allow_lockdown |
if True will keep Lockdown data in the df, by default True
TYPE:
|
allow_paq_na |
remove rows which have any missing PAQ values otherwise will remove those with 50% missing, by default False verbose : int, optional how much info to print while running, by default 1
TYPE:
|
val_range |
min and max range of the PAQ response values, by default (5, 1)
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
tuple
|
cleaned dataframe, dataframe of excluded samples |
Source code in soundscapy/databases/isd.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
|
Soundscape Attributes Translation Project (SATP)
load_participants
load_participants(version='latest')
Load the SATP participants dataset from Zenodo.
PARAMETER | DESCRIPTION |
---|---|
version |
Version of the dataset to load. The default is "latest".
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
df
|
Dataframe containing the SATP participants dataset.
TYPE:
|
Source code in soundscapy/databases/satp.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
load_zenodo
load_zenodo(version='latest')
Load the SATP dataset from Zenodo.
PARAMETER | DESCRIPTION |
---|---|
version |
Version of the dataset to load. The default is "latest".
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
df
|
Dataframe containing the SATP dataset.
TYPE:
|
Source code in soundscapy/databases/satp.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|