Skip to content

Commit

Permalink
monkey-patch projects asset with json_metadata field
Browse files Browse the repository at this point in the history
  • Loading branch information
DistributedDoge authored Dec 12, 2023
1 parent 9067c8c commit 4112acf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ggdp/assets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import json

import pandas as pd
from dagster import asset
from fsspec.implementations.http import HTTPFileSystem
Expand Down Expand Up @@ -76,7 +78,9 @@ def raw_passport_scores() -> pd.DataFrame:

@asset
def raw_projects() -> pd.DataFrame:
return chain_file_aggregator("projects.json")
projects = chain_file_aggregator("projects.json")
projects['json_metadata'] = projects['metadata'].apply(json.dumps)
return projects


@asset
Expand Down

0 comments on commit 4112acf

Please sign in to comment.