from .utils import * def getMovieDetailById(movieId): tableData = df.values resultData = [] for i in tableData: if i[0] == movieId: i[17] = i[17].split(sep=',') resultData.append(list(i)) return resultData def getMovieDetailBySearchWord(searchWord): # print(searchWord) tableData = df.values resultData = [] for i in tableData: if i[3].find(searchWord) != -1: i[17] = i[17].split(sep=',') resultData.append(list(i)) # resultData.append(i) return resultData