xorbitsai / xorbits

Scalable Python DS & ML, in an API compatible & lightning fast way.
https://xorbits.readthedocs.io
Apache License 2.0
1.1k stars 67 forks source link

CHORE: disable infer_datetime_format option to reduce warnings #673

Closed ChengjieLi28 closed 1 year ago

ChengjieLi28 commented 1 year ago

Related #583 See https://pandas.pydata.org/pdeps/0004-consistent-to-datetime-parsing.html. This can reduce warnings like this when running tpch :

/Users/lichengjie/Projects/workspace/xorbits/python/xorbits/_mars/dataframe/tseries/to_datetime.py:195: UserWarning: The argument 'infer_datetime_format' is deprecated and will be removed in a future version. A strict version of it is now the default, see https://pandas.pydata.org/pdeps/0004-consistent-to-datetime-parsing.html. You can safely remove this argument.

Check code requirements

codecov[bot] commented 1 year ago

Codecov Report

Merging #673 (685da27) into main (22c6d5f) will increase coverage by 0.26%. The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #673      +/-   ##
==========================================
+ Coverage   93.38%   93.65%   +0.26%     
==========================================
  Files        1025     1025              
  Lines       79734    79733       -1     
  Branches    16538    16538              
==========================================
+ Hits        74460    74671     +211     
+ Misses       3607     3385     -222     
- Partials     1667     1677      +10     
Flag Coverage Δ
unittests 93.54% <ø> (+0.26%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...hon/xorbits/_mars/dataframe/datasource/read_csv.py 86.69% <ø> (ø)
...hon/xorbits/_mars/dataframe/tseries/to_datetime.py 98.90% <ø> (-0.02%) :arrow_down:

... and 15 files with indirect coverage changes