File "C:\_dev\python_ws\_Libs_OpenSource\qdscreen\qdscreen\selector.py", line 112, in <lambda>
levels_mapping_df = pd.DataFrame(X_ar[:, (parent, child)]).groupby(0).agg(lambda x: x.value_counts().index[0])
File "C:\Miniconda3\envs\tools_py37\lib\site-packages\pandas\core\indexes\base.py", line 4297, in __getitem__
return getitem(key)
IndexError: index 0 is out of bounds for axis 0 with size 0
When NaNs are present in the dataframe, an IndexError can occur:
yields