Python code in Jupyter
jabr
New Altair Community Member
Answers
-
Hi @jabr,for the first part, just change de type of of column in you excel file from number to a general.for the second part, be sure that you import the Date column as polynominal attribute. Then run your python script.please find attached an sample process.
Best
-1 -
Hi @jabr,
Inside the process you have a python script.
the basic code is this:from datetime import datetime
d = ["20210513095417", "20210514095417", "20210515095417"]
l = len(d)
for x in range(l):
d1 = d[x]
dt = datetime(year=int(d1[0:4]), month=int(d1[4:6]), day=int(d1[6:8]))
d[x] = dt
print(d)
Best0