Skip to content

Commit

Permalink
update only to :6
Browse files Browse the repository at this point in the history
  • Loading branch information
interrogator committed Aug 22, 2019
1 parent bcb97af commit 4f76936
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buzzword/parts/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,18 +392,18 @@ def _new_table(

# if we are updating the table:table_size
if updating:
table = FREQUENCY_TABLES[exists_as_tuple]
table = FREQUENCY_TABLES[exists_as_tuple[:6]]
exists[-1] += 1
# fix rows and columns
table = table[[i["id"] for i in current_cols[1:]]]
table = table.loc[[i["_" + table.index.name] for i in current_data]]
# store again
exists = _tuple_or_list(exists, list)
session_tables[key] = exists
FREQUENCY_TABLES[exists_as_tuple] = table
FREQUENCY_TABLES[exists_as_tuple[:6]] = table
elif exists:
msg = "Table already exists. Switching to that one to save memory."
table = FREQUENCY_TABLES[exists_as_tuple]
table = FREQUENCY_TABLES[exists_as_tuple[:6]]
# if there was a validation problem, juse use last table (?)
elif msg:
if session_tables:
Expand Down

0 comments on commit 4f76936

Please sign in to comment.