Discussion about this post

User's avatar
Don C's avatar

Thanks for your newsletter!

I tried working through the code tonight and was wondering if anynone else got an error message.

df_copy = df_copy.assign(

YEAR=df.copy['SETTLEMENTDATE'].dt.year,

MONTH=df.copy['SETTLEMENTDATE'].dt.month,

DAY=df.copy['SETTLEMENTDATE'].dt.day

)

YEAR=df.copy['SETTLEMENTDATE'].dt.year,

TypeError: 'method' object is not subscriptable

Expand full comment
1 more comment...

No posts