在这种情况下,我需要在.csv文件的数据的python中执行混淆矩阵,但是我有一个问题,其中我有两列(一列带有时间戳,另一列带有温度值)。
const onMediaDeliverableChange = index => ({ target: {checked} }) => {
console.log('>> [form.js] (onMediaDeliverablesChange) index = ',index);
console.log('>> [form.js] (onMediaDeliverablesChange) target = ',checked); }
运行代码时
const onCheckBoxChange = index => ({ target: { checked } }) => {
const newValues = [...values];
const value = values[index];
newValues[index] = { ...value, checked };
console.log('>> [form.js] (onCheckBoxChange) value = ',value, index);
console.log('>> [form.js] (onCheckBoxChange) newValues[index] = ',newValues[index]);
props.setDesignOrDigital(newValues);
};
我得到这个结果:
Timestamp Temperature
0 Tue Apr 23 2019 11:49:21 GMT+0100 (GMT+01:00) 19.6
1 Tue Apr 23 2019 11:50:15 GMT+0100 (GMT+01:00) 19.5
2 Tue Apr 23 2019 11:50:15 GMT+0100 (GMT+01:00) 19.6
3 Tue Apr 23 2019 11:50:55 GMT+0100 (GMT+01:00) 19.5
4 Tue Apr 23 2019 11:51:45 GMT+0100 (GMT+01:00) 19.4
我的疑问是如何在Python中提取两个float变量的日和小时值。