Skip to content

Commit

Permalink
Fix indentation in Tensor.to_tensor()
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenkaF committed Apr 3, 2024
1 parent 497a3e0 commit 06eda83
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions python/pyarrow/table.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -3434,7 +3434,6 @@ cdef class RecordBatch(_Tabular):
type: double
shape: (5, 2)
strides: (16, 8)
>>> batch.to_tensor(null_to_nan=True).to_numpy()
array([[ 1., 10.],
[ 2., 20.],
Expand All @@ -3451,10 +3450,10 @@ cdef class RecordBatch(_Tabular):
strides: (8, 40)
>>> batch.to_tensor(null_to_nan=True, row_major=False).to_numpy()
array([[ 1., 10.],
[ 2., 20.],
[ 3., 30.],
[ 4., 40.],
[nan, nan]])
[ 2., 20.],
[ 3., 30.],
[ 4., 40.],
[nan, nan]])
"""
cdef:
shared_ptr[CRecordBatch] c_record_batch
Expand Down

0 comments on commit 06eda83

Please sign in to comment.