我正在尝试渲染视频组件,由于另一个组件的输入操作,该视频组件被调用。我尝试了通过npm install安装的几个现成的软件包。但似乎没有一个对我有用。因此,我认为问题出在我自己的代码上:
train_ids=train['Embarked']
test_ids=test['Embarked']
cols=list(test.columns)
cols.remove('Embarked')
cols.insert(0,'Embarked')
combined=pd.concat([train.drop('Survived',axis=1)[cols],test[cols]])
combined=pd.get_dummies(combined)
train_new=combined[combined['Embarked'].isin(train_id)]
test_new = combined[combined['Embarked'].isin(test_id)]
train_new=train_new.merge(train[['Embarked','Survived']],on='Embarked')
答案 0 :(得分:0)
对于视频,我通常使用react-player
<ReactPlayer url='https://video URL / video file' playing />