Machine Learning, Data Science, Geoscience, Artificial Intelligence, AI.
pd.read_csv(‘well_log_sample.csv’,index_col = ‘DEPT’) #define porosity category (poor vs good) def por(x): if x <0.1: return(0) else: return(1) #apply function to NPHI log df[‘POR’] = df[‘NPHI’].map(lambda x: por(x)) Since there are only 8 parameters (not including POR or NPHI column) that we want