Skip to content

Commit b4972e9

Browse files
author
minjk-bl
committed
Add standard version for pandas, Add options for pandas libraries
1 parent 2296546 commit b4972e9

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

visualpython/data/m_library/pandasLibrary.js

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ define([
2424
* }
2525
* ]
2626
*/
27+
/** Last edited standard version */
28+
var PANDAS_VERSION = '2.0.0';
29+
2730
var PANDAS_FUNCTION = {
2831
"pdPdo_series": {
2932
"name": "Series",
@@ -2396,6 +2399,9 @@ define([
23962399
{
23972400
"name": "i0",
23982401
"label": "Target Variable",
2402+
"component": [
2403+
"data_select"
2404+
],
23992405
"required": true
24002406
},
24012407
{
@@ -2412,7 +2418,7 @@ define([
24122418
"name": "Info",
24132419
"library": "pandas",
24142420
"description": "DataFrame info(info per columns, data type, memory usage, ...)",
2415-
"code": "${o0} = ${i0}.info()",
2421+
"code": "${o0} = ${i0}.info(${verbose}${etc})",
24162422
"options": [
24172423
{
24182424
"name": "i0",
@@ -2432,14 +2438,22 @@ define([
24322438
"component": [
24332439
"data_select"
24342440
]
2441+
},
2442+
{
2443+
"name": "verbose",
2444+
"label": "Verbose",
2445+
"component": [
2446+
"bool_select"
2447+
],
2448+
"usePair": true
24352449
}
24362450
]
24372451
},
24382452
"pdIdt_describe": {
24392453
"name": "Describe",
24402454
"library": "pandas",
24412455
"description": "",
2442-
"code": "${o0} = ${i0}.describe()",
2456+
"code": "${o0} = ${i0}.describe(${include}${exclude})",
24432457
"options": [
24442458
{
24452459
"name": "i0",
@@ -2460,6 +2474,20 @@ define([
24602474
"component": [
24612475
"data_select"
24622476
]
2477+
},
2478+
{
2479+
"name": "include",
2480+
"label": "Include",
2481+
"component": [ "var_select" ],
2482+
"placeholder": "'all' or dtypes list",
2483+
"usePair": true
2484+
},
2485+
{
2486+
"name": "exclude",
2487+
"label": "Exclude",
2488+
"component": [ "var_select" ],
2489+
"placeholder": "'all' or dtypes list",
2490+
"usePair": true
24632491
}
24642492
]
24652493
},

0 commit comments

Comments
 (0)