'NoneType' object is not subscriptabl

Hi,
I am getting below error, while executing a python script.

TypeError: ‘NoneType’ object is not subscriptable

Traceback:

File “C:\Users\spatn\anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py”, line 552, in _run_script
exec(code, module.dict)

Kindly advise, what is the ERROR & HOW TO FIX THIS ?

Thank you.

Hi @Madhu,

Thank you for sharing your question with the community!

Your post is missing a code snippet and a link to your app’s GitHub repo. Please check out our guidelines on how to post an effective question here and update your post to help the community answer your question.

Looks like this is a duplicate of this post.