Skip to content

Instantly share code, notes, and snippets.

@SamLau95
Created August 17, 2023 19:16
Show Gist options
  • Save SamLau95/07a79341914c2ebc1a0b8a4b5b1c062e to your computer and use it in GitHub Desktop.
Save SamLau95/07a79341914c2ebc1a0b8a4b5b1c062e to your computer and use it in GitHub Desktop.
def compute_ppsf(df):
return df.assign(
ppsf=df['price'] / df['bsqft'],
log_ppsf=lambda df: np.log10(df['ppsf']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment