I am not able to solve this error

Unable to allocate array with shape (40000, 93813) and data type int64

Yes you can’t allocate such a bigger array, since your pc’s ram will be say 8 gb, and you are trying to make an array that would take space of nearly 27 gb (40000938138) bytes.
So try to change the implementation by using dictionaries etc.

Hope this helped :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.