Skip to content

Conversation

@kyleolaughlin
Copy link

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry
Copy link
Member

@mzeitlin11 mzeitlin11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pr @kyleolaughlin. Some comments, plus looks like you accidentally committed the file ctypes.__init__.cover.

Also, first thing any pr needs is tests!

) -> np.ndarray:
""" convert to our native types format """
values = ensure_wrapped_if_datetimelike(values)
if isinstance(values, Categorical) and isinstance(values.categories[0], Timestamp):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to use .dtype to get the category type in a more stable way. Also, why is this timestamp specific? Do other datetimelike values work (and are tested?)

result = result.astype(object, copy=False)
return result


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the unrelated change here and in lines below

@simonjayhawkins
Copy link
Member

Thanks @kyleolaughlin for the PR. what is the issue number this PR is addressing?

@simonjayhawkins simonjayhawkins added Bug Categorical Categorical Data Type IO CSV read_csv, to_csv labels May 24, 2021
@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Jun 24, 2021
@mzeitlin11
Copy link
Member

Thanks for contributing @kyleolaughlin, closing as stale for now, but please ping to reopen if you'd like to continue working on this.

@mzeitlin11 mzeitlin11 closed this Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Categorical Categorical Data Type IO CSV read_csv, to_csv Stale

3 participants