moviesWithGenres_df.at[index, genre] = 1

后端 未结 0 1482
暗喜
暗喜 2021-01-04 00:29
#For every row in the dataframe, iterate through the list of genres and place a 1 into the corresponding column

for index, row in movies_df.iterrows():

for genre i         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题