kurusugawa-computer / annofab-cli

AnnofabのCLI(Command Line Interface)ツールです。
https://annofab-cli.readthedocs.io/ja/latest/
MIT License
9 stars 0 forks source link

statistics visualize : pandasのFutureWarningsを解決する #1102

Closed yuji38kwmt closed 7 months ago

yuji38kwmt commented 10 months ago
/home/vagrant/.pyenv/versions/3.12.1/lib/python3.12/site-packages/annofabcli/statistics/visualization/dataframe/user_performance.py:304: FutureWarning: The provided callable <function sum at 0x7fbb40f36ac0> is currently using DataFrameGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "sum" instead.
  df_agg_task_history = df_task_history.pivot_table(
/home/vagrant/.pyenv/versions/3.12.1/lib/python3.12/site-packages/annofabcli/statistics/visualization/dataframe/user_performance.py:309: FutureWarning: The provided callable <function sum at 0x7fbb40f36ac0> is currently using DataFrameGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "sum" instead.
  df_agg_labor = df_labor.pivot_table(values="actual_worktime_hour", index="account_id", aggfunc=numpy.sum)
/home/vagrant/.pyenv/versions/3.12.1/lib/python3.12/site-packages/annofabcli/statistics/visualization/dataframe/user_performance.py:310: FutureWarning: The provided callable <function max at 0x7fbb40f371a0> is currently using DataFrameGroupBy.max. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "max" instead.
  df_tmp = df_labor[df_labor["actual_worktime_hour"] > 0].pivot_table(
/home/vagrant/.pyenv/versions/3.12.1/lib/python3.12/site-packages/annofabcli/statistics/visualization/dataframe/user_performance.py:249: FutureWarning: The provided callable <function sum at 0x7fbb40f36ac0> is currently using DataFrameGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "sum" instead.
  df_agg_production = df_worktime_ratio.pivot_table(

/home/vagrant/.pyenv/versions/3.12.1/lib/python3.12/site-packages/annofabcli/statistics/visualization/dataframe/whole_productivity_per_date.py:155: FutureWarning: The provided callable <function sum at 0x7fbb40f36ac0> is currently using DataFrameGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "sum" instead.
  df_agg_sub_task = df_sub_task.pivot_table(
/home/vagrant/.pyenv/versions/3.12.1/lib/python3.12/site-packages/annofabcli/statistics/visualization/dataframe/whole_productivity_per_date.py:169: FutureWarning: The provided callable <function sum at 0x7fbb40f36ac0> is currently using DataFrameGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "sum" instead.
  df_agg_labor = df_worktime.pivot_table(

/home/vagrant/.pyenv/versions/3.12.1/lib/python3.12/site-packages/annofabcli/statistics/visualization/dataframe/whole_productivity_per_date.py:937: FutureWarning: The provided callable <function sum at 0x7fbb40f36ac0> is currently using DataFrameGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "sum" instead.
  df_agg_sub_task = df_sub_task.pivot_table(
yuji38kwmt commented 7 months ago

対応済