hi it worked for me.can you tell me how to attach the documents so that i would send the output screenshot attached to it.I do not see any way to attach the documents
You said that you'd achieved your desired output, yet the code posted doesn't work. You are either not running this code and have posted something else, or wrong. Either post the code you're actually running, or fix the issues discussed in the reply I linked to. You can't post screenshots here, and there's no need in this case.