When running the following code, the result of dask.dataframe.head() depends on npartitions:
import dask.dataframe as dd
import pandas as pd
df = pd.DataFrame({'A': [1,2,3], 'B': [2,3,4]})
ddf = dd.from_pandas(df, npartitions = 3)
print(ddf.head())
This yields the following result:
A B
0 1 2
However, when I set npartitions to 1 or 2, I get the expected result:
A B
0 1 2
1 2 3
2 3 4
It seems to be important, that npartitions is lower than the length of the dataframe. Is this intended?