M2_UGL_1 - Regenerated Chart V2 is created with no graph plot in it

Post executing the Cell 8 of Module 2 , for feedback integration and code Update .
A blank graph is created for “Regenerated Chart V2“
Below is the reference snapshot for the same :

Further when i went ahead with further execution, in cell 13 i get new error.
**Error : “datetime64 type does not support sum operations“
**
Below is the reference snapshot for the same .

Can anyone please help in resolving the above issue !

Thanks .

2 Likes

I have the same problem. Second version graph plot is empty. The same error “datatime64 type does not support operations”.

i didn’t have this issue, can you refresh and get updated version of notebook.

let me know if you still encounter the same issue, then I will report to staff.

Yes, it is repeated. Original first draft code works and provides good chart. First draft code invoked from run_workflow() produces other code and it looks worse.

I attach ipynb

M2_UGL_1_v2.ipynb (416.2 KB)

2 Likes

@Deepti_prasad I tried to reload and rerun the notebook . I am getting the same error .
and also i tried to restore to original version and rerun the notebook . Still the same error .

2 Likes

Swapping the generation and reflection models to GPT-4.1-mini and GPT-4.1 fixes the issue for me.

4 Likes

ok thank you @zhenpenglu

@saurabh090909 and @at61, I have still informed the staff about this error, so they can update the code.

Thank you everyone for reporting this.

it is ungraded lab

Sorry, I’ll restore the link.

1 Like

@zhenpenglu : Post model switch from GPT-4.1-mini and GPT-4.1 we get a similar type graph with different color and label get added. which i think is incorrect, correct me if i am wrong.

Also in cell 13 if we scroll the bottom of output , the the error of “datetime64 type does not support sum operations“ continue .

cc: @TMosh @Deepti_Prasad

1 Like

I think it’s because GPT-4.1-mini is stronger than the generation model used in the video, so it doesn’t make the same mistake. The other issue you talked about is from the models too. You should change the default models in the last cell.

1 Like

Thank you @zhenpenglu for suggestion!

For me, change to gpt-4.1-mini and gpt-4.1 resolve some errors.

Separate original plot, created with gpt-4o-mini, looks good.

Separate revised plot, created with o4-mini, is empty.

This time first version of plot in integrated function looks chaotic, and reflected (revised) plot looks better, similar to gpt-4o-mini, but with improved labeling.

Thank you all!

1 Like

no problem I didn’t delete because I thought staff might want to look at the error and as it wasn’t part of graded lab.

@saurabh090909 during testing gpt 4.1 was used and it didn’t have any such issues encountered by you all.

I appreciate everyone’s reporting and patience. please wait for staff to look into this issue. by then you can move on to next section.

Regards

DP

Thank you for reporting! I’m testing it myself and I’ll review it over with the team! We’ll update you through this channel!

i still have the same issue. ples inform us after the code is fixed. @lesly.zerna

after swapping, the x-axis on your first chart is by year. and the reflection final chart is by coffee name, right?

I also had the same issue regarding datetime64 not being supported.

Yes, also testing again (with some fixes) I got

TypeError: unsupported operand type(s) for +: 'DatetimeArray' and 'str'

We’re fixing it with the team!

Updates soon :smiley:

ok