Created
July 29, 2017 05:34
-
-
Save iktakahiro/77d154b6649c5f67de70f353ffdeab3b to your computer and use it in GitHub Desktop.
回帰式を関数として定義 コード
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 改めて回帰式を取得 | |
SLOPE, INTERCEPT, rvalue, pvalue, stder = linregress( | |
lego_df['pieces'], | |
lego_df['us_price']) | |
# 関数を定義 | |
def get_price(piece): | |
return piece * SLOPE + INTERCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
forgiving me not understand...