coiled / dask-community

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

[Stack Overflow] how to convert Column of dask dataframe in reverse order Python #1383

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years 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-convert-column-of-dask-dataframe-in-reverse-order-python>