Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit811f913

Browse files
committed
Remove unnecessary conditions
Remove unnecessary conditions
1 parent3f5eb5d commit811f913

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎python/pandasCommand.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@ def _vp_get_columns_list(df):
3636
cInfo['value']="'{}'".format(c)
3737
eliftype(c).__name__=='Timestamp':
3838
cInfo['value']=str(c)
39+
3940
# category - iopub data rate limit issue...
41+
cInfo['category']= []
4042
ifstr(df[c].dtype)=='object':
4143
uniqValues=df[c].dropna().unique()
4244
iflen(uniqValues)<=20:
4345
cInfo['category']= [{"value":"'{}'".format(u)iftype(u)==strelseu,"label":u }foruinuniqValues]
44-
else:
45-
cInfo['category']= []
46-
else:
47-
cInfo['category']= []
46+
4847
colList.append(cInfo)
4948
returncolList
5049

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp