Skip to content

Instantly share code, notes, and snippets.

@vivekpadia70
Last active December 25, 2019 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivekpadia70/17571cf95f0a1e2b90c828befd50a15e to your computer and use it in GitHub Desktop.
Save vivekpadia70/17571cf95f0a1e2b90c828befd50a15e to your computer and use it in GitHub Desktop.
df = pd.concat([df, pd.get_dummies(df["Type"]), pd.get_dummies(df["Method"]), pd.get_dummies(df["Regionname"])], axis=1)
df = df.drop(["Suburb", "Address", "SellerG", "CouncilArea", "Type", "Method", "Regionname"], 1)
df['Date'] = [pd.Timestamp(x).timestamp() for x in df["Date"]]
df = df.dropna()
df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment