Skip to content

Conversation

@itholic
Copy link
Contributor

@itholic itholic commented Mar 17, 2020

This PR proposes Index.asof
(https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.asof.html#pandas.Index.asof)

>>> idx = ks.Index(['2013-12-31', '2014-01-02', '2014-01-03'])
>>> idx.asof('2014-01-01')
'2013-12-31'

>>> idx.asof('2014-01-02')
'2014-01-02'

>>> idx.asof('1999-01-02')
nan

@codecov-io
Copy link

codecov-io commented Mar 17, 2020

Codecov Report

Merging #1350 into master will decrease coverage by 1.14%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1350      +/-   ##
==========================================
- Coverage   95.21%   94.06%   -1.15%     
==========================================
  Files          34       34              
  Lines        7696     7705       +9     
==========================================
- Hits         7328     7248      -80     
- Misses        368      457      +89     
Impacted Files Coverage Δ
databricks/koalas/missing/indexes.py 100.00% <ø> (ø)
databricks/koalas/series.py 96.79% <ø> (ø)
databricks/koalas/indexes.py 97.06% <100.00%> (+0.06%) ⬆️
databricks/koalas/usage_logging/__init__.py 26.12% <0.00%> (-69.37%) ⬇️
databricks/koalas/usage_logging/usage_logger.py 50.00% <0.00%> (-50.00%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 663680b...4e943d7. Read the comment docs.

@HyukjinKwon HyukjinKwon merged commit 3d7427f into databricks:master Mar 20, 2020
@itholic itholic deleted the i_asof branch March 21, 2020 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants