Skip to content

Commit 9b287a8

Browse files
committed
Add Python auto import completions and convert dataframe types.
1 parent 16dbefa commit 9b287a8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"settings": {
1010
"quarto.render.previewType": "external",
1111
"notebook.formatOnSave.enabled": true,
12+
"python.analysis.autoImportCompletions": true,
1213
"python.analysis.typeCheckingMode": "basic",
1314
"dbt.queryLimit": 200,
1415
"files.associations": {

ggdp/assets.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def round_file_aggregator(json_name):
5656
df_round["chainId"] = str(chain_id)
5757
df_round["roundId"] = str(round_id)
5858
df = pd.concat([df, df_round])
59+
60+
df = df.convert_dtypes()
61+
5962
return df
6063

6164

@@ -98,4 +101,6 @@ def raw_round_applications() -> pd.DataFrame:
98101

99102
@asset
100103
def raw_round_contributors() -> pd.DataFrame:
101-
return round_file_aggregator("contributors.json")
104+
df = round_file_aggregator("contributors.json")
105+
df["roundId"] = '"' + df["roundId"] + '"'
106+
return df

0 commit comments

Comments
 (0)