Skip to content

Commit c144e3c

Browse files
author
minjk-bl
committed
Add cut, qcut to pandas library
1 parent 24ac080 commit c144e3c

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

visualpython/data/m_library/pandasLibrary.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4056,19 +4056,25 @@ define([
40564056
}
40574057
]
40584058
},
4059-
"pd088": {
4059+
"pdFunc_cut": {
40604060
"name": "Cut",
40614061
"library": "pandas",
40624062
"description": "Cut data for ranging",
4063-
"code": "${o0} = pd.cut(${i0}, ${i1}${right}${labels}${precision})",
4063+
"code": "${o0} = pd.cut(${x}, ${bins}${right}${labels}${precision})",
40644064
"options": [
40654065
{
4066-
"name": "i0",
4066+
"name": "x",
40674067
"label": "1-dimension Array",
4068+
"component": [
4069+
"data_select"
4070+
],
4071+
"var_type": [
4072+
"Series", "list"
4073+
],
40684074
"required": true
40694075
},
40704076
{
4071-
"name": "i1",
4077+
"name": "bins",
40724078
"label": "Divide By",
40734079
"required": true
40744080
},
@@ -4102,23 +4108,26 @@ define([
41024108
}
41034109
]
41044110
},
4105-
"pd089": {
4111+
"pdFunc_qcut": {
41064112
"name": "Qcut",
41074113
"library": "pandas",
41084114
"description": "Q-cut",
4109-
"code": "${o0} = pd.qcut(${i0}, ${i1}${labels}${precision})",
4115+
"code": "${o0} = pd.qcut(${x}, ${q}${labels}${precision})",
41104116
"options": [
41114117
{
4112-
"name": "i0",
4118+
"name": "x",
41134119
"label": "List/Series",
41144120
"required": true,
4121+
"component": [
4122+
"data_select"
4123+
],
41154124
"var_type": [
41164125
"list",
41174126
"Series"
41184127
]
41194128
},
41204129
{
4121-
"name": "i1",
4130+
"name": "q",
41224131
"label": "Divide By",
41234132
"required": true
41244133
},

0 commit comments

Comments
 (0)