/
githubmirror
/
pandas
Обзор
Документация
Войти
/
githubmirror
/
pandas
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
doc/source/getting_started/comparison/includes/transform.rst
8 строк
280 B
Aidan Feldman
DOC: remove use of head() in the comparison docs (#38935)
04 янв 2021, 16:21
Не верифицирован
04 янв 2021, 16:21
8b2ebdb
Код
Авторство
О чём код?
pandas provides a :ref:`groupby.transform` mechanism that allows these type of operations to be succinctly expressed in one operation. .. ipython:: python gb = tips.groupby("smoker")["total_bill"] tips["adj_total_bill"] = tips["total_bill"] - gb.transform("mean") tips