โ09-24-2021 09:39 PM
โ09-25-2021 12:01 PM
Hi Kaniz,
You can remove it by using the pop method
dict.pop('key', None)
It is a safe way to delete a key even if you are not sure it exists. The second parameter is optional also.
You can read more about the method here.
Thank you
โ09-25-2021 10:54 PM
Thank you @spark-user.
โ09-26-2021 05:13 AM
No problem!
never-displayed
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.