itables icon indicating copy to clipboard operation
itables copied to clipboard

Add the datetime extension

Open mwouts opened this issue 1 year ago • 2 comments

Will close #288

mwouts avatar Jun 10 '24 20:06 mwouts

Thank you for making this pull request.

Did you know? You can try it on Binder: Binder:lab.

Also, the version of ITables developed in this PR can be installed with pip:

pip install git+https://github.com/mwouts/itables.git@add_datetime_extension

(this requires nodejs, see more at Developing ITables)

github-actions[bot] avatar Jun 10 '24 20:06 github-actions[bot]

Testing locally with this code almost works, e.g. we can display and filter the table

from itables import show, init_notebook_mode

init_notebook_mode(all_interactive=True)

show(pd.DataFrame({'date':pd.date_range("2022-01-01", "2024-12-31")}), buttons=["searchBuilder"])

@AllanJard do I need to do something special to get rid of the YYYY before the date?

image

mwouts avatar Jun 24 '24 20:06 mwouts

@AllanJard do I need to do something special to get rid of the YYYY before the date?

The problem is gone now with datatables.net-datetime==1.5.3, thank you Allan!

mwouts avatar Sep 03 '24 21:09 mwouts

AWesome - good to hear :)

AllanJard avatar Sep 03 '24 21:09 AllanJard

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.88%. Comparing base (014d22e) to head (47847ae). Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #289   +/-   ##
=======================================
  Coverage   95.88%   95.88%           
=======================================
  Files          27       27           
  Lines        1191     1191           
=======================================
  Hits         1142     1142           
  Misses         49       49           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Sep 07 '24 23:09 codecov-commenter