Following warnings come from using np.array_split on dataframe:
tests/pipeline/test_stream_executor.py: 15 warnings
/Users/arik/ws/ssec/dplutils/.tox/test/lib/python3.11/site-packages/numpy/core/fromnumeric.py:59: FutureWarning: 'DataFrame.swapaxes' is deprecated and will be removed in
a future version. Please use 'DataFrame.transpose' instead.
return bound(*args, **kwds)
potential solution:
chunks = np.linspace(0, number_of_splits, num=rows_in_df, endpoint=False, dtype=np.int32)
splits = [chunk for _, chunk in df.groupby(chunks)
Following warnings come from using
np.array_split
on dataframe:potential solution: