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

Commit25bd448

Browse files
author
minjk-bl
committed
Fix 0 index and col bug, show .index code on Series selection
1 parent963a112 commit25bd448

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎visualpython/js/m_apps/Subset.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,10 @@ define([
18101810
rowSelection.append(')');
18111811
}else{
18121812
rowSelection.appendFormat('({0}',varName);
1813+
if(colName=='.index'){
1814+
// index
1815+
rowSelection.append('.index');
1816+
}
18131817
oper&&rowSelection.appendFormat(' {0}',oper);
18141818
if(cond){
18151819
// condition value as text
@@ -1863,7 +1867,7 @@ define([
18631867
varcolList=[];
18641868
for(vari=0;i<colTags.length;i++){
18651869
varcolValue=$(colTags[i]).data('code');
1866-
if(colValue){
1870+
if(colValue!==undefined){
18671871
colList.push(colValue);
18681872
}
18691873
}
@@ -1873,7 +1877,7 @@ define([
18731877
$(this.wrapSelector('.'+VP_DS_TO_FRAME)).parent().show();
18741878

18751879
// to frame
1876-
if(this.state.toFrame){
1880+
if(this.state.toFrame===true){
18771881
colSelection.appendFormat('[{0}]',colList.toString());
18781882
this.state.returnType='DataFrame';
18791883
}else{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp