Skip to content

Commit

Permalink
fix: force types in streams asset (#11)
Browse files Browse the repository at this point in the history
**Motivation:**

Force types for fields which were not specific enough
  • Loading branch information
scottincrypto committed Aug 10, 2023
1 parent 2b7371a commit e7ebeff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aave_data/assets/financials/data_lake.py
Original file line number Diff line number Diff line change
Expand Up @@ -1710,6 +1710,10 @@ def streaming_payments_state(context, block_numbers_by_day):
streams['unvested'] = streams.deposit - streams.vested
streams['unclaimed'] = streams.vested - streams.claims

# fix types
float_cols = ['stream_rate','claims_raw','deposit','claims','current_time','vested_proportion','vested','unvested','unclaimed']
for col in float_cols:
streams[col] = streams[col].astype(float)

streams = streams.drop(columns=['deposit_raw', 'claims_raw', 'vested_proportion', 'current_time'])
# streams = streams.drop(columns=['deposit_raw', 'claims_raw'])
Expand Down

0 comments on commit e7ebeff

Please sign in to comment.