You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
573 B

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