Skip to content

Commit

Permalink
Merge pull request ibis-project#22 from anmyachev/speed-up-census
Browse files Browse the repository at this point in the history
PERF: remove extra sql execution on omnisci side
  • Loading branch information
anmyachev authored Mar 5, 2020
2 parents 76c710a + 9959917 commit 4b8a89c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions census/census_pandas_ibis.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ def etl_ibis(
table = table.set_column(column, table[column].cast("float64"))
etl_times["t_typeconvert"] += timer() - t0

y = table["EDUC"].execute()
df = table.execute()
y = df["EDUC"]
t0 = timer()
X = table.drop(["EDUC"]).execute()
X = df.drop(["EDUC"], axis=1)
etl_times["t_drop"] += timer() - t0

etl_times["t_etl"] = timer() - t_etl_start
Expand Down

0 comments on commit 4b8a89c

Please sign in to comment.