Skip to content

Instantly share code, notes, and snippets.

@a-agmon
Last active August 18, 2019 17:26
Show Gist options
  • Save a-agmon/3d68c477f2e63e889fea6a0cf7be7314 to your computer and use it in GitHub Desktop.
Save a-agmon/3d68c477f2e63e889fea6a0cf7be7314 to your computer and use it in GitHub Desktop.
#Load tp file
df_raw = pd.read_csv(r'path\capture20110810-scen1.binetflow')
#label the infected address
infected_addr = "147.32.84.165"
df_raw["Bot"] = np.where(df_raw['SrcAddr'] == infected_addr, 1, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment