NRWAL.utilities.utilities.find_np_pd_methods
- find_np_pd_methods(s)[source]
Find the start and end index of the first np. or pd. function in the input string
- Parameters:
s (str) – String possibly containing numpy functions like “10 + np.exp(input)”
- Returns:
start / end (int) – Starting and ending indices of the first np. or pd. method. So if s=”10 + np.exp(input)” then s[start:end]=”np.exp(input)”