Function reference

Main Module

py4stats.eda_tools

py4stats.eda_tools モジュールは、探索的データ解析と前処理に関する機能を提供します。複数の DataFrame バックエンドに対して共通の API を提供することを目的として、narwhals ライブラリを用いて実装されています。詳細は Technical Notes を参照してください。

データフレームの概要

py4stats.diagnose()

クロス集計

py4stats.tabyl()

py4stats.freq_table()

py4stats.Pareto_plot()

カテゴリー変数の要約

py4stats.diagnose_category()

py4stats.plot_category()

py4stats.info_gain()

数値変数の点推定と区間推定

py4stats.mean_qi() py4stats.median_qi() py4stats.mean_ci()

データフレームの列や行の削除

py4stats.remove_empty()
py4stats.remove_constant()

py4stats.filtering_out()

データフレームの列の並べ替え

py4stats.relocate()

データフレームの縦結合

py4stats.relocate()

データフレームのグループ化された処理

py4stats.group_split() py4stats.group_map() py4stats.group_modify()

複数のデータフレームの比較

py4stats.compare_df_cols() py4stats.compare_df_stats()

py4stats.review_wrangling()

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.plot_mean_diff() py4stats.plot_median_diff()

簡易な欠測値の可視化

py4stats.plot_miss_var()

py4stats.set_miss()

数値変数の集計と標準化

py4stats.weighted_mean() py4stats.scale() py4stats.min_max()

論理関数

py4stats.is_number() py4stats.is_ymd() py4stats.is_ymd_like()

py4stats.is_dummy()

簡易なルールベースのデータ検証ツール

py4stats.check_that() py4stats.check_viorate()


py4stats.regression_tools

py4stats.regression_toolsstatsmodels ライブラリで作成された回帰分析の結果についての可視化と表作成を補助する機能を提供するモジュールです。

線形モデルの比較

py4stats.compare_ols()

py4stats.compare_mfx()

線形モデルの可視化

py4stats.coefplot() py4stats.mfxplot()

線形モデルを作表するためのバックエンド関数

py4stats.tidy()py4stats.tidy_mfx()

py4stats.tidy_test()

py4stats.glance()

Blinder-Oaxaca分解

py4stats.Blinder_Oaxaca() py4stats.plot_Blinder_Oaxaca()

Sub Module

py4stats.heckit_helper

py4stats.regression_tools の関数を py4etrics.heckit ライブラリで実装された Heckit モデルに対応させるためのメソッドを提供します。

heckit_helper.Heckit_from_formula()

heckit_helper.tidy_heckit()

heckit_helper.heckitmfx_compute()


py4stats.building_block

py4stats ライブラリの実装に使用するアサーション関数やユーティリティ関数を提供します。 building_block モジュール自体は外部から呼び出すことなく内部実装に使用することを想定しています。

引数のアサーション関数

building_block.arg_match()

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.style_pvalue() building_block.p_stars()

並列文の作成

building_block.oxford_comma() building_block.oxford_comma_and() building_block.oxford_comma_or()


Jump to Get started.
Jump to Readme.