O'Reilly logo
  • QIAN Weishuo thinks this is interesting:

Use the filter method passed with the check_minority function and a threshold of 50% to find all states that have a minority majority

From

Cover of Pandas Cookbook

Note

返回的是剩下的groups再拼接还原的大DataFrame