Skip to content

Commit

Permalink
Some pandas code abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlano authored Aug 14, 2024
1 parent 5af7edb commit 0794523
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cg/python2UML.cstl
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ trailer::
. min _1 |-->->min()
. head _1 |-->->collect( _ser | _ser.subrange(1,_1))
. tail _1 |-->->collect( _ser | _ser.subrange(_1, _ser->size()))
. at _1 |-->_1`secondArg->at(_1`firstArg->first())
. at _1 |-->_1`reversedAccess

. day |-->.getDate()
. year |-->.getYear()
Expand Down Expand Up @@ -1481,6 +1481,17 @@ _1 |-->$x



reversedAccess::
0 |-->->first()

_1 , _2 |-->_2`reversedAccess_1`reversedAccess

[ _1 ] |-->_1`reversedAccess<when> _1 subscriptlist
_1 |-->_1`reversedAccess<when> _1 subscriptlist

_1 |-->->at(_1)<when> _1 String
_1 |-->->at(_1 + 1)


subscriptlist::
: |-->
Expand Down Expand Up @@ -2121,6 +2132,7 @@ trailerOclType::
. median _1 |-->double
. head _1 |-->Map
. tail _1 |-->Map
. at _1 |-->OclAny

. capitalize _1 |-->String
. join _1 |-->String
Expand Down

0 comments on commit 0794523

Please sign in to comment.