File tree 1 file changed +34
-2
lines changed
visualpython/data/m_library
1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -2440,7 +2440,7 @@ define([
2440
2440
"name" : "get data counts" ,
2441
2441
"library" : "pandas" ,
2442
2442
"description" : "get data value counts" ,
2443
- "code" : "${o0} = ${i0}.value_counts()" ,
2443
+ "code" : "${o0} = ${i0}.value_counts(${bins}${sort}${ascending}${dropna}${etc} )" ,
2444
2444
"options" : [
2445
2445
{
2446
2446
"name" : "i0" ,
@@ -2457,7 +2457,39 @@ define([
2457
2457
"component" : [
2458
2458
"input"
2459
2459
]
2460
- }
2460
+ } ,
2461
+ {
2462
+ "name" : "bins" ,
2463
+ "component" : [
2464
+ "input_number"
2465
+ ] ,
2466
+ "help" : "Only for Series object" ,
2467
+ "usePair" : true ,
2468
+ } ,
2469
+ {
2470
+ "name" : "sort" ,
2471
+ "component" : [
2472
+ "bool_select"
2473
+ ] ,
2474
+ "default" : "True" ,
2475
+ "usePair" : true ,
2476
+ } ,
2477
+ {
2478
+ "name" : "ascending" ,
2479
+ "component" : [
2480
+ "bool_select"
2481
+ ] ,
2482
+ "default" : "False" ,
2483
+ "usePair" : true ,
2484
+ } ,
2485
+ {
2486
+ "name" : "dropna" ,
2487
+ "component" : [
2488
+ "bool_select"
2489
+ ] ,
2490
+ "default" : "True" ,
2491
+ "usePair" : true ,
2492
+ } ,
2461
2493
]
2462
2494
} ,
2463
2495
"pdIdt_info" : {
You can’t perform that action at this time.
0 commit comments