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

API: select_dtypes #7316

Closed
jreback opened this issue Jun 2, 2014 · 5 comments · Fixed by #7434
Closed

API: select_dtypes #7316

jreback opened this issue Jun 2, 2014 · 5 comments · Fixed by #7434
Labels
API Design Dtype Conversions Unexpected or buggy dtype conversions Enhancement
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jun 2, 2014

related #7308
related #7314

maybe something like this

df.get_for_dtypes(types)

types could be a list of string/dtypes or a dtype/string

e.g.

'float64'
['float']
['float32','float64','object']
['float',np.dtype('bool')]
['numeric']
['datetime','timedelta']

are possible values

pretty easy to implement (just translate the types and filter on the blocks, ala _get_numeric_data)

@jreback jreback added this to the 0.14.1 milestone Jun 2, 2014
@jreback
Copy link
Contributor Author

jreback commented Jun 2, 2014

if anyone could think of a better name.... :)

@cpcloud
Copy link
Member

cpcloud commented Jun 2, 2014

cols_with_type(list_o_types)

@jreback
Copy link
Contributor Author

jreback commented Jun 2, 2014

could also have a signature

``df.get_for_dtypes(include=..., exclude=....)`

@TomAugspurger
Copy link
Contributor

Is this intended for internal use only, or for everyone?

@jreback
Copy link
Contributor Author

jreback commented Jun 2, 2014

I think external (user) use; (as we already have _get_numeric_data/_get_bool_data (and could make another if necessary

@cpcloud cpcloud self-assigned this Jun 11, 2014
@jreback jreback changed the title API: get_for_dtypes API: select_dtypes Jun 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Dtype Conversions Unexpected or buggy dtype conversions Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants