You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve documentation of DataFrame.divisions #8264
Talking to a user recently, they were confused about how to pass divisions= in set_index. Specifically, they missed that the list had to have N+1 elements in it, and the N+1th element was the upper bound for the last partition.
Related to this issue We were chatting about the divisions section of the docs in set_index where it says
"If sorted=False, you should leave divisions empty and call repartition after set_index." It looks like this comment was introduced a long time ago by @jcrist (see ad752cc) and we wonder if this is still the case, or the docs are missing an update. Jim, do you remember why this comment was added at the time and if this still holds?
Activity
ncclementi commentedon Nov 2, 2021
Related to this issue We were chatting about the
divisionssection of the docs in set_index where it says"If sorted=False, you should leave divisions empty and call repartition after set_index." It looks like this comment was introduced a long time ago by @jcrist (see ad752cc) and we wonder if this is still the case, or the docs are missing an update. Jim, do you remember why this comment was added at the time and if this still holds?
cc: @gjoseph92
jsignell commentedon Nov 15, 2021
I think I understand what the original meaning was. I opened a PR to clarify.