Skip to content

How to specify a dtype with a dtype= keyword #155

Closed
@rgommers

Description

@rgommers

DataFrame.from_sequence introduces a dtype= keyword, and specifies it's a string without going into details. This is a potentially tricky topic. There's a number of ways this could go:

  • Indeed use strings, e.g. dtype='float64'
  • Use canonical names like in the array API, e.g. dtype=float64
  • Use the same as done in the interchange protocol, e.g. Dtype = Tuple[DtypeKind, int, str, str]

My first instinct would be to use canonical names rather than strings, but it depends a bit on how often we'll use dtypes I think.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions