We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f5eb5d commit 811f913Copy full SHA for 811f913
python/pandasCommand.py
@@ -36,15 +36,14 @@ def _vp_get_columns_list(df):
36
cInfo['value'] = "'{}'".format(c)
37
elif type(c).__name__ == 'Timestamp':
38
cInfo['value'] = str(c)
39
+
40
# category - iopub data rate limit issue...
41
+ cInfo['category'] = []
42
if str(df[c].dtype) == 'object':
43
uniqValues = df[c].dropna().unique()
44
if len(uniqValues) <= 20:
45
cInfo['category'] = [{ "value": "'{}'".format(u) if type(u) == str else u, "label": u } for u in uniqValues]
- else:
- cInfo['category'] = []
46
47
48
colList.append(cInfo)
49
return colList
50
0 commit comments