Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to apply tanH on pd dataframe

import numpy as np
import pandas as pd

df['YourColumn'] = df['TanhResult'].apply(lambda x: np.tanh(x))
 
PREVIOUS NEXT
Tagged: #apply #tanH #pd #dataframe
ADD COMMENT
Topic
Name
2+6 =