I have two questions for the experts:
1. How to concatenate two JMP tables in python?
2, how can the following python be modified to python asyncio asynchronous execution form?
Thanks Experts!
import jmputils
import jmp
from datetime import datetime, timedelta
today = datetime.today()
dates = []
for i in range(200):
dates.append((today - timedelta(days=i)).strftime('%Y%m%d'))
j = 0
for date in dates:
#print(date)
j += 1
jmp.run_jsl('''
b=Python Get(date);
d1=New Table("o",Add Rows(1),New Column("date",Set Values({b})));
Python Send(d1)
''')
#print(d1)
jmp.run_jsl('''
j=Python Get(j);
//b=Python Get(d1);
if(j==1,d2=d1;d2<<setName("test");,current data table(d2);d2<<Concatenate(Data Table(d1),Append to first table);Close(d1,nosave));
''')
I still don't have an answer.Looking forward to expert help.