Skip to content

Commit

Permalink
add partial r9 data
Browse files Browse the repository at this point in the history
  • Loading branch information
danlessa committed Mar 18, 2021
1 parent 4b7f0a3 commit 81e140c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Binary file not shown.
10 changes: 4 additions & 6 deletions prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def parse_contributions_data(input_path: str, output_csv_path: str=None) -> pd.D
event_property_map = {'created_on': 'created_on',
'originated_address': 'contributor',
'title': 'grant',
'amount_per_period_usdt': 'amount'}
'amount_per_period_usdt': 'amount',
'sybil_score': 'sybil_score',
'success': 'success'}

# Prepare tokenizer
tokenize_contributor = tfms.Tokenizer(max_token_len=10)
Expand Down Expand Up @@ -86,8 +88,4 @@ def main(src, dst):

if __name__ == '__main__':
main()
# %%
import json
path = 'contributions_2021-02-24T16_51_25.595Z.json'
parse_contributions_data(path, 'data/2021-02-24-contributions.csv.xz')
# %%

0 comments on commit 81e140c

Please sign in to comment.