Skip to content

GH-49907: [Python] FixedShapeTensor to_pandas_dtype returns NotImplementedError#50107

Draft
aboderinsamuel wants to merge 1 commit into
apache:mainfrom
aboderinsamuel:49907-to-pandas-dtype
Draft

GH-49907: [Python] FixedShapeTensor to_pandas_dtype returns NotImplementedError#50107
aboderinsamuel wants to merge 1 commit into
apache:mainfrom
aboderinsamuel:49907-to-pandas-dtype

Conversation

@aboderinsamuel
Copy link
Copy Markdown

@aboderinsamuel aboderinsamuel commented Jun 5, 2026

Rationale for this change

method needs to be implemented in order to use table.to_pandas(split_blocks=True)

What changes are included in this PR?

Added to_pandas_dtype method to an extension array

Are these changes tested?

Yes

Are there any user-facing changes?

The users of Arrow would see the changes, so we would be able to use pandas on the extension arrays

Copilot AI review requested due to automatic review settings June 5, 2026 16:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a new pandas-marked unit test intended to exercise ExtensionType.to_pandas_dtype() for fixed_shape_tensor types.

Changes:

  • Introduces test_extension_type_to_pandas_dtype under the pandas test marker.
  • Calls to_pandas_dtype() on a fixed_shape_tensor(float32, [2, 2]) instance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +55 to +57
@pytest.mark.pandas
def test_extension_type_to_pandas_dtype():
pa.fixed_shape_tensor(pa.float32(),[2,2]).to_pandas_dtype()

@pytest.mark.pandas
def test_extension_type_to_pandas_dtype():
pa.fixed_shape_tensor(pa.float32(),[2,2]).to_pandas_dtype()
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

⚠️ GitHub issue #49907 has been automatically assigned in GitHub to PR creator.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants