Function reference
Main Module
py4stats.eda_tools
py4stats.eda_tools モジュールは、探索的データ解析と前処理に関する機能を提供します。複数の DataFrame バックエンドに対して共通の API を提供することを目的として、narwhals ライブラリを用いて実装されています。詳細は Technical Notes を参照してください。
データフレームの概要
クロス集計
カテゴリー変数の要約
数値変数の点推定と区間推定
py4stats.mean_qi() py4stats.median_qi() py4stats.mean_ci()
データフレームの列や行の削除
データフレームの列の並べ替え
データフレームの縦結合
データフレームのグループ化された処理
py4stats.group_split() py4stats.group_map() py4stats.group_modify()
複数のデータフレームの比較
py4stats.compare_df_cols() py4stats.compare_df_stats()
py4stats.review_shape() py4stats.review_col_addition() py4stats.review_casting() py4stats.review_missing() py4stats.review_category() py4stats.review_numeric()
簡易なグループ別統計量の比較
py4stats.compare_group_means() py4stats.compare_group_median()
簡易な欠測値の可視化
数値変数の集計と標準化
py4stats.weighted_mean() py4stats.scale() py4stats.min_max()
論理関数
py4stats.is_number() py4stats.is_ymd() py4stats.is_ymd_like()
簡易なルールベースのデータ検証ツール
py4stats.check_that() py4stats.check_viorate()
py4stats.regression_tools
py4stats.regression_tools は statsmodels ライブラリで作成された回帰分析の結果についての可視化と表作成を補助する機能を提供するモジュールです。
線形モデルの比較
線形モデルの可視化
線形モデルを作表するためのバックエンド関数
Blinder-Oaxaca分解
Sub Module
py4stats.heckit_helper
py4stats.regression_tools の関数を py4etrics.heckit ライブラリで実装された Heckit モデルに対応させるためのメソッドを提供します。
heckit_helper.Heckit_from_formula()
heckit_helper.heckitmfx_compute()
py4stats.building_block
py4stats ライブラリの実装に使用するアサーション関数やユーティリティ関数を提供します。 building_block モジュール自体は外部から呼び出すことなく内部実装に使用することを想定しています。
引数のアサーション関数
building_block.assert_character() building_block.assert_logical() building_block.assert_numeric() building_block.assert_integer() building_block.assert_count() building_block.assert_float()
データ型を判定する論理関数
building_block.is_character() building_block.is_logical() building_block.is_numeric() building_block.is_integer() building_block.is_float()
数字のフォーマット
building_block.style_number() building_block.style_currency() building_block.style_percent()
並列文の作成
building_block.oxford_comma() building_block.oxford_comma_and() building_block.oxford_comma_or()