You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @madanucd - I am attempting to use the validator on some Dataset metadata and got the following error:
Validating dataset data from file: ..\..\INCLUDE\Study & Dataset\dataset_draft_2024-10-09.csv
Traceback (most recent call last):
File "C:\Users\lopi\OneDrive - The University of Colorado Denver\Documents\INCLUDE_LinkML\include-linkml\venv\Scripts\\validate-data", line 6, in <module>
sys.exit(main())
^^^^^^
File "C:\Users\lopi\OneDrive - The University of Colorado Denver\Documents\INCLUDE_LinkML\include-linkml\src\data_validation\cli.py", line 36, in main
validation_function(args.input_file, args.output)
File "C:\Users\lopi\OneDrive - The University of Colorado Denver\Documents\INCLUDE_LinkML\include-linkml\src\data_validation\validation.py", line 40, in validate_dataset
return validate_data(file_path, string_columns, validate_dataset_entry, output_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lopi\OneDrive - The University of Colorado Denver\Documents\INCLUDE_LinkML\include-linkml\src\data_validation\validation_utils.py", line 68, in validate_data
clean_dataframe_strings(df, string_columns)
File "C:\Users\lopi\OneDrive - The University of Colorado Denver\Documents\INCLUDE_LinkML\include-linkml\src\data_validation\validation_utils.py", line 17, in clean_dataframe_strings
df[string_columns] = df[string_columns].map(clean_string)
~~^^^^^^^^^^^^^^^^
File "C:\Users\lopi\OneDrive - The University of Colorado Denver\Documents\INCLUDE_LinkML\include-linkml\venv\Lib\site-packages\pandas\core\frame.py", line 4108, in __getitem__
indexer = self.columns._get_indexer_strict(key, "columns")[1]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lopi\OneDrive - The University of Colorado Denver\Documents\INCLUDE_LinkML\include-linkml\venv\Lib\site-packages\pandas\core\indexes\base.py", line 6200, in _get_indexer_strict
self._raise_if_missing(keyarr, indexer, axis_name)
File "C:\Users\lopi\OneDrive - The University of Colorado Denver\Documents\INCLUDE_LinkML\include-linkml\venv\Lib\site-packages\pandas\core\indexes\base.py", line 6252, in _raise_if_missing
raise KeyError(f"{not_found} not in index")
KeyError: "['data access'] not in index"
The text was updated successfully, but these errors were encountered:
Hi @madanucd - I am attempting to use the validator on some Dataset metadata and got the following error:
The text was updated successfully, but these errors were encountered: