Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
グループ化変数によって、特定の変数の記述統計を取得しようとしていました。describe 関数がデフォルトで与えるよりも多くのパーセンタイル値が出力に必要でした。
次のコードを試しました:
df.groupby('city')['population'].describe([0.01,0.05,0.25,0.50,0.75,0.90,0.95,0.99])
エラーが発生します: describe() takes 1 positional argument but 2 were given
describe() takes 1 positional argument but 2 were given