extracting other params from logistic
This commit is contained in:
parent
ada205962b
commit
8f272bdc17
3 changed files with 94 additions and 31 deletions
|
@ -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
|
||||
|
||||
|
||||
#%%
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue