Skip to content

[Python] SparseCOOTensor.__repr__ missing f-string prefix #49108

@chilin0525

Description

@chilin0525

Describe the bug, including details regarding any error messages, version, and platform.

The method was missing the f prefix, causing it to output literal {self.type} and {self.shape} instead of actual values:

def __repr__(self):
return """<pyarrow.SparseCOOTensor>
type: {self.type}
shape: {self.shape}"""

Component(s)

Python

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions