Skip to content

New column based on NumPy using current column as a list/array? #2156

Answered by saulpw
wbmphd asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @wbmphd, I don't think you can quite use numpy.diff, but you can get a windowed view of the current column; use the w command and specify the number of rows before/after you want in each list. Then you can use an expression column to do what you want with that last.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wbmphd
Comment options

Answer selected by wbmphd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants