Skip to content
Advertisement

Simple calculation on table. Please help me to make my code more effective

Please help me to make my code more effective. This is my df:

JavaScript
JavaScript

Please help me to find the Vshale. Vshale on each well = GR – GR(min) / GR(max) – GR(min). This is my desired result:

JavaScript

This code is work for me, but, I should create a new column that consists of GRMax and GRMin and merge it into my previous df. I am looking for a more effective way without adding GRmin and GRmax on my original df. Thank you.

JavaScript

Advertisement

Answer

one string solution with method transform:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement