Skip to content

[C++][Python] Make output type of Arange configurable #55633

Open

Description

@rok

arrow::Arange (moved to Arrow C++ in GH-46872 / #48710) always returns an int64 array. As @pitrou suggested in #48710 (comment), we should let callers choose the output type (other integer types, and maybe floating point), e.g. by adding a std::shared_ptr<DataType> parameter that defaults to int64(). pyarrow.arange could then expose this as a type= argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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