here is the code
import dask.dataframe as dd
import pandas as pd
df = pd.DataFrame({
'col1' : ['A', 'A', 'E', np.nan, 'D', 'C','B','C'],
'col2' : [2, 1, 9, 8, 7, 4,10,5],
'col3': [0, 1, 9, 4, 2, 3,1,2],
'col4': [11,12,12,13,14,55,56,22], })
out_1=df.loc[::-1,"col4"]
dd_df=dd.from_pandas(df,npartitions=5)
out_2=dd_df.loc[::-1,"col4"]
#out_2 throws an error
I know that Dask doesn't work the same way as pandas. How can I get the same output like out_1
with DASK?