📜  如何在 pyspark 中查找两个值之间的记录 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:08.701000             🧑  作者: Mango

代码示例1
test_df.filter(F.col("start").between(pd.to_datetime('2017-04-13'),pd.to_datetime('2017-04-14'))).show()

+--------------------+-----+
|               start|value|
+--------------------+-----+
|2017-04-13 12:00:...|  1.0|
|2017-04-14 00:00:...|  1.1|
+--------------------+-----+