Answers for "how tofind records between two values in pyspark"

0

how tofind records between two values in pyspark

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|
+--------------------+-----+
Posted by: Guest on May-19-2021

Code answers related to "how tofind records between two values in pyspark"

Browse Popular Code Answers by Language