我使用append_to_multiple
将dataframe附加到两个表中,选择器是一个datetime列。就这样。你知道吗
store.append_to_multiple({'time': ['time'], 'data': ['field1', 'field2']},
df, selector='time')
然后,现在我想用select_as_multiple
和where参数来查询time
字段。
我想这样做,但是查询datetime字段。你知道吗
store.select_as_multiple(['df1_mt', 'df2_mt'], where=['A>0', 'B>0'],
selector = 'df1_mt')
所以,where
参数的元素必须是字符串,那么如何使用datetime索引进行查询呢?你知道吗
如docs中所述,可以使用YYYYMMDD int/string或内联
Timestamp
表达式。你知道吗相关问题 更多 >
编程相关推荐