This is a great contribution to the ASReview universe and highly wanted by users, see the discussion at asreview/asreview#1220.
When I ran the extension I ran into an issue. To reproduce:
asreview notes_export example-ptsd.asreview
Traceback (most recent call last):
File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Python310\Scripts\asreview.exe\__main__.py", line 7, in <module>
File "C:\Python310\lib\site-packages\asreview\__main__.py", line 78, in main
entry.load()().execute(sys.argv[2:])
File "C:\Python310\lib\site-packages\asreviewcontrib\notes_export\entrypoint.py", line 42, in execute
export_notes(
File "C:\Python310\lib\site-packages\asreviewcontrib\notes_export\notes_export.py", line 39, in export_notes
dataset_with_results = dataset.df.join(df.set_index('record_id')[['labeling_order','label','notes']])
File "C:\Python310\lib\site-packages\pandas\core\frame.py", line 9254, in join
return self._join_compat(
File "C:\Python310\lib\site-packages\pandas\core\frame.py", line 9285, in _join_compat
return merge(
File "C:\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 122, in merge
return op.get_result()
File "C:\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 718, in get_result
llabels, rlabels = _items_overlap_with_suffix(
File "C:\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 2313, in _items_overlap_with_suffix
raise ValueError(f"columns overlap but no suffix specified: {to_rename}")