Skip to content
This repository was archived by the owner on Apr 15, 2022. It is now read-only.

Commit 64995ff

Browse files
sharmanirekBen-Epstein
authored andcommitted
fixed bug in inspectTable() (#20)
1 parent 1b4696c commit 64995ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splicemachine/ml/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,14 +399,14 @@ def tree_json(tree):
399399
'children': DecisionTreeVisualizer.parse(data[1:])}]
400400
return res[0]
401401

402-
def inspectTable(spliceMLCtx, df, sql, topN = 5):
402+
def inspectTable(spliceMLCtx, sql, topN = 5):
403403
"""Inspect the values of the columns of the table (dataframe) returned from the sql query
404404
405405
:param spliceMLCtx: SpliceMLContext
406406
:param sql: sql string to execute
407407
:param topN: the number of most frequent elements of a column to return, defaults to 5
408408
"""
409-
df = splice.df(sql)
409+
df = spliceMLCtx.df(sql)
410410
df = df.repartition(50)
411411

412412
for _col, _type in df.dtypes:

0 commit comments

Comments
 (0)