Skip to content

Instantly share code, notes, and snippets.

@eshaben
Created June 21, 2022 05:35
Show Gist options
  • Save eshaben/1481084be8fc36f47cfba0096fc689fc to your computer and use it in GitHub Desktop.
Save eshaben/1481084be8fc36f47cfba0096fc689fc to your computer and use it in GitHub Desktop.
import pandas as pd
data = pd.read_csv('~/Downloads/0x50afc32c3e5d25aee36d035806d80ee0c09c2a16.csv')
out_flow = data.loc[data['From'] == '0x50afc32c3e5d25aee36d035806d80ee0c09c2a16', 'Value'].sum()
in_flow = data.loc[data['To'] == '0x50afc32c3e5d25aee36d035806d80ee0c09c2a16', 'Value'].sum()
print("Subscan", in_flow, out_flow)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment