How to keep major-order when copying or groupby-ing a pandas DataFrame?
问题 How can I use or manipulate (monkey-patch) pandas in order, to keep always the same major-order on the resulting object for copy and groupby aggregations? I use pandas.DataFrame as datastructure within a business application (risk model) and need fast aggregation of multidimensional data. Aggregation with pandas depends crucially on the major-ordering scheme in use on the underlying numpy array. Unfortunatly, pandas (version 0.23.4) changes the major-order of the underlying numpy array when I