Skip to content

Commit

Permalink
fix tasks/avito entity_table name (#269)
Browse files Browse the repository at this point in the history
A tiny fix on entity_table name.
  • Loading branch information
yanxwb authored Oct 28, 2024
1 parent d60904e commit 00fb9d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions relbench/tasks/avito.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def make_table(self, db: Database, timestamps: "pd.Series[pd.Timestamp]") -> Tab

return Table(
df=df,
fkey_col_to_pkey_table={"AdID": "entity_table"},
fkey_col_to_pkey_table={self.entity_col: self.entity_table},
pkey_col=None,
time_col="timestamp",
)
Expand Down Expand Up @@ -108,7 +108,7 @@ def make_table(self, db: Database, timestamps: "pd.Series[pd.Timestamp]") -> Tab

return Table(
df=df,
fkey_col_to_pkey_table={"UserID": "entity_table"},
fkey_col_to_pkey_table={self.entity_col: self.entity_table},
pkey_col=None,
time_col="timestamp",
)
Expand Down Expand Up @@ -165,7 +165,7 @@ def make_table(self, db: Database, timestamps: "pd.Series[pd.Timestamp]") -> Tab

return Table(
df=df,
fkey_col_to_pkey_table={"UserID": "entity_table"},
fkey_col_to_pkey_table={self.entity_col: self.entity_table},
pkey_col=None,
time_col="timestamp",
)
Expand Down

0 comments on commit 00fb9d2

Please sign in to comment.