Pandas MultiIndex causes out of memory error
I have used multi indexing in my code which is causing out of memory error.

`import pandas as pd
import numpy as np
import io
import requests
url="https://raw.githubusercontent.com/mahsa-ebrahimian/netflix_project/master/netflix_sample_complete.csv"
movie_db=pd.read_csv(url, error_bad_lines=False)
del movie_db['Unnamed: 0']
iix_n = pd.MultiIndex.from_product([np.unique(movie_db.user_id), np.unique(movie_db.date)]) 
arr = (movie_db.pivot_table('rating', ['user_id', 'date'], 'item_id', aggfunc='sum').reindex(iix_n,copy=False).to_numpy().reshape(movie_db.user_id.nunique(),movie_db.date.nunique(),-1))`

any performance tip or alternative solution to change my data into desired 3D way would be appreciated.