Using pandas.Dataframe.groupby without alphabetical ordering

时间:2015-07-29 00:06:49

标签: python pandas group-by dataframe alphabetical-sort

I have a dataframe that I want to alter (according to the code right below) but it put's all the 'Experiment' name values in alphabetical order. Is there a way to leave the order as it is after calling pandas.Dataframe.groupby?

Clone

1 个答案:

答案 0 :(得分:12)

bar = foo.rdbuf()->in_avail(); takes a keyword argument groupby, which by default is sort. You should do:

True