« first day (1972 days earlier)      last day (1606 days later) » 

04:56
Hii,
please give some guidance to this
https://stackoverflow.com/q/62862439/12955442
 
1 hour later…
06:20
1 message moved from Python
06:43
Here is a small part of a large program - import tkinter as tk

def func(root):
root1 = tk.Tk()
root1.geometry('100x100')
root1.grid_propagate(0)
x = tk.IntVar()
cbox = tk.Checkbutton(root1, variable = x)
but1 = tk.Button(root1, text = 'Show Value', command = lambda: print(x.get()))

cbox.grid()
but1.grid()

root = tk.Tk()
root.geometry('100x100')
root.grid_propagate(0)
func(root)
root.mainloop()
07:04
I want to find the best parameters for my function ``` def func(Y, t, r, p, K, alpha):
return r * (Y ** p) * (1 - (Y / K) ** alpha)```
r and alpha ranges from 0 to 1
sorry, p and alpha ranges from 0 to 1, r from 0.01 to 2 and K from the current value to 3* current value
how can I find the best values for the parameters ?
1 message moved from Python
5 messages moved from Python
 
3 hours later…
11:08
1 message moved from Python
 
4 hours later…
14:46
@PedroSpinola works pretty well in war
1 message moved from Python
 
5 hours later…
19:46
@roganjosh what works pretty well on war ?
 
1 hour later…
21:15
@PedroSpinola if he wanted to continue he wouldn't have moved that message. Please ignore it.
2 messages moved from Python
 
2 hours later…
23:28
`def formula(row):
s0= row[0]
s1= row[1]
s2= row[2]
s3= row[3]
if s1 !="":
return s1
elif s2 !="":
return s2
elif s3 !="":
return s3
else:
return s0

df1["final"]=df1.apply(formula,axis = "columns")
df1`
:49911640 `def formula(row):
s0= row[0]
s1= row[1]
s2= row[2]
s3= row[3]
if s1 !="":
return s1
elif s2 !="":
return s2
elif s3 !="":
return s3
else:
return s0

df1["final"]=df1.apply(formula,axis = "columns")
df1`
having issues with the indenting above, sorry about that.
23:49
3 messages moved from Python

« first day (1972 days earlier)      last day (1606 days later) »