Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tslibs TODO list #17652

Closed
51 of 59 tasks
jbrockmendel opened this issue Sep 23, 2017 · 8 comments
Closed
51 of 59 tasks

tslibs TODO list #17652

jbrockmendel opened this issue Sep 23, 2017 · 8 comments
Labels
Clean Internals Related to non-user accessible pandas implementation Master Tracker High level tracker for similar issues

Comments

@jbrockmendel
Copy link
Member

jbrockmendel commented Sep 23, 2017

Misc:

Refactoring:

  • move _nat_strings and _checknull_with_nat to a single canonical location
  • put OutOfBoundsDatetimeError in a dependency-free util-like module. (Implement npy_dtime.pyx #17805)
  • Possible redundancy between parse_datetime_string and parse_time_string update not redundant.
  • De-privatize names in tslibs.parsing
  • cython version of compat for string_types, StringIO
  • Don't import DateParseError in tslib
  • de-privatize nattype._checknull_with_nat (closed by Cross off a few tslibs-TODOs #18443)

Check if these need to be exposed or (in some cases) need to exist:

  • _Period._comparables (closed by Cross off a few tslibs-TODOs #18443)
  • Timedelta._validate_ops_compat
  • Timedelta._binary_op_method_timedeltalike
  • Timedelta._op_unary_method
  • Timedelta._roundupdate Won't fix/correct-as-is
  • Timestamp._roundupdate Won't fix/correct-as-is
  • _Timestamp._get_fieldupdate Won't fix/correct-as-is
  • _Timestamp._get_named_field
  • _Timestamp._get_start_end_fieldupdate Won't fix/correct-as-is
  • lib.arrmap (closed by Cross off a few tslibs-TODOs #18443)
  • _libs.src.numpy_helper.infer_type

TZ Conversion:

Offsets:

Timestamp Methods (moved from #17876)-

Follow-Up Cleanup:

Decision Making

Issues:

Questions:

Unsorted

Low Priority:

@jreback jreback added Clean Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Sep 24, 2017
@jreback
Copy link
Contributor

jreback commented Sep 24, 2017

as an FYI, am happy to have you make 1 issue that you create (e.g. this one), that you can then put ToDO items and then check them off.

@jbrockmendel jbrockmendel changed the title Put _nat_strings in a pxd tslibs TODO list Sep 24, 2017
@jorisvandenbossche jorisvandenbossche added Internals Related to non-user accessible pandas implementation and removed Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Sep 25, 2017
@jbrockmendel
Copy link
Member Author

FYI most of these are solved locally and are slowly getting pushed back upstream. The main ones on which I need input are a) the tz_convert vs tz_convert_single issue (see discussion in #17734), b) the question about obj.tzinfo in tslib._localize_tso. and c) the BQuarterBegin issue.

@jreback
Copy link
Contributor

jreback commented Nov 10, 2017

for _nat_strings, I think tslibs.parsing is defining these as well as tslibs.nattype

@WillAyd
Copy link
Member

WillAyd commented Feb 7, 2018

@jbrockmendel for the pyx LINT to-do do you need help updating the pyx files? From what I can tell most of the errors there would be simple like E225 missing whitespace operator

Relatively minor but having worked on some pyx files recently including those in lint-diff in the Makefile would be nice. Very clean and easy if we don't need to select a bunch of codes as we currently do in ci/lint.sh

Happy to knock out some of those pyx files if you need help. Let me know.

@jbrockmendel
Copy link
Member Author

I think the E225 errors are for cython pointer arguments &dts which the linter thinks are typos. Do you know of a cython-aware linter? Most times I try to run flake8 on cython it hits a syntax error pretty early and then chokes.

@WillAyd
Copy link
Member

WillAyd commented Feb 7, 2018

My mistake - I just saw all of those errors and assumed they were legitimate, but now I see the caveat. I'm not aware of a cython-aware linter and doubt there is one.

@WillAyd
Copy link
Member

WillAyd commented Feb 7, 2018

Can't claim to have done this before but one of the answers in the below SO article makes me think there's a way to modify setup.cfg to have different matching criteria just for .pyx files, which at the very least could make it easier to consistently apply LINTing to the project whether its called from the Makefile or from ci/lint.sh. Worth a look if there's an appetite to keep that consistent

https://stackoverflow.com/questions/25535599/options-for-linting-cython-code

@jbrockmendel
Copy link
Member Author

Everything actionable has either been addressed or has its own issue. closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Internals Related to non-user accessible pandas implementation Master Tracker High level tracker for similar issues
Projects
None yet
Development

No branches or pull requests

5 participants