bug fix (exception handling)
This commit is contained in:
parent
1bffb8d7be
commit
15e53cb656
|
@ -91,9 +91,11 @@ class Input :
|
||||||
#
|
#
|
||||||
# We will look into the count and make a judgment call
|
# We will look into the count and make a judgment call
|
||||||
try:
|
try:
|
||||||
_df = pd.DataFrame(self.df.apply(lambda col: col.dropna().unique().size )).T
|
# _df = pd.DataFrame(self.df.apply(lambda col: col.dropna().unique().size )).T
|
||||||
MIN_SPACE_SIZE = 2
|
# MIN_SPACE_SIZE = 2
|
||||||
self._columns = cols if cols else _df.apply(lambda col:None if col[0] == row_count or col[0] < MIN_SPACE_SIZE else col.name).dropna().tolist()
|
# self._columns = cols if cols else _df.apply(lambda col:None if col[0] == row_count or col[0] < MIN_SPACE_SIZE else col.name).dropna().tolist()
|
||||||
|
# self._io = _df.to_dict(orient='records')
|
||||||
|
_df = self.df.nunique().T / self.df.shape[0]
|
||||||
self._io = _df.to_dict(orient='records')
|
self._io = _df.to_dict(orient='records')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print (e)
|
print (e)
|
||||||
|
|
Loading…
Reference in New Issue