Skip to content

Instantly share code, notes, and snippets.

@iktakahiro
Created July 29, 2017 05:34
Show Gist options
  • Select an option

  • Save iktakahiro/77d154b6649c5f67de70f353ffdeab3b to your computer and use it in GitHub Desktop.

Select an option

Save iktakahiro/77d154b6649c5f67de70f353ffdeab3b to your computer and use it in GitHub Desktop.
回帰式を関数として定義 コード
# 改めて回帰式を取得
SLOPE, INTERCEPT, rvalue, pvalue, stder = linregress(
lego_df['pieces'],
lego_df['us_price'])
# 関数を定義
def get_price(piece):
return piece * SLOPE + INTERCEPT
Copy link
Copy Markdown

ghost commented Jul 29, 2017

forgiving me not understand...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment