coiled / dask-community

Issue tracker for the Dask community team
MIT License
2 stars 0 forks source link

[Stack Overflow] how to reverse the row order in a column of a dask dataframe? #1385

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

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=d…

---
## Would you like to know more?
Read the full article on the following website:

<https://stackoverflow.com/questions/73682701/how-to-reverse-the-row-order-in-a-column-of-a-dask-dataframe>