extracting other params from logistic

This commit is contained in:
Tanushree Tunstall 2020-06-22 14:11:16 +01:00
parent ada205962b
commit 8f272bdc17
3 changed files with 94 additions and 31 deletions

View file

@ -308,33 +308,25 @@ print('Finished writing file:', outfile
, '\nNo. of cols:', len(combined_or_df.columns)
, '\n=========================================================')
#%%
#%% practice
df = pd.DataFrame()
column_names = ['x','y','z','mean']
for col in column_names:
df[col] = np.random.randint(0,100, size=10000)
df.head()
# drop duplicate col with dup values not necessarily colnames
df['xdup'] = df['x']
df
df.T.drop_duplicates().T
df = df.T.drop_duplicates().T
import math
#import math
math.exp(0)
df['expX'] = np.exp(df['x']) # math doesn't understand series dtype
df
#%%