databricks / koalas

Koalas: pandas API on Apache Spark
Apache License 2.0
3.32k stars 356 forks source link

Implement Series.at_time() #2130

Closed xinrong-meng closed 3 years ago

xinrong-meng commented 3 years ago
>>> idx = pd.date_range('2018-04-09', periods=4, freq='12H')
>>> kser = ks.Series([1, 2, 3, 4], index=idx)
>>> kser
2018-04-09 00:00:00    1
2018-04-09 12:00:00    2
2018-04-10 00:00:00    3
2018-04-10 12:00:00    4
dtype: int64

>>> kser.at_time('12:00')
2018-04-09 12:00:00    2
2018-04-10 12:00:00    4
dtype: int64
ueshin commented 3 years ago

Thanks! merging.