{
'gid': '1204359005227901',
'name': '撰寫產品計畫書',
'completed': True,
'completed_at': datetime.datetime(2023, 5, 31, 1, 26, 13, 978000, tzinfo=tzutc()),
'due_on': datetime.date(2023, 5, 30),
'start_on': datetime.date(2023, 4, 11),
'assignee':
{
'gid': '1203513697511442',
'resource_type': None,
'name': 'Rita'
}
}
px.timeline(
self.dataframe,
x_start="Start",
x_end="End",
y="Task",
color="Assigned"
)
dict(
Task = "工作1",
Start = '2023-09-13',
End = '2023-10-25',
Assigned = "Rita",
Difficulty = 70
)
df = []
for task in kb.my_tasks:
job = {}
job['Task'] = task['name']
job['Start'] = task['start_on']
job['End'] = task['due_on']
job['Assigned'] = task['assignee']['name']
df.append(job)