Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e46c85f
Update format.py
Feb 24, 2022
0a51d25
Update test_format.py
Feb 24, 2022
c6bf639
pre commit
Feb 24, 2022
f857db8
Update test_format.py
Feb 24, 2022
2be9fd2
incompatible types in assignment
Feb 25, 2022
c368578
Merge branch 'bug_ExtensionArray_with_2D_datetime64' of https://githu…
Feb 25, 2022
d286682
add
Feb 26, 2022
6eea976
Update astype.py
Feb 26, 2022
3875560
Incompatible return value type
Feb 26, 2022
00a7e7e
change to list(fmt_values)
Feb 27, 2022
065001f
add
Mar 3, 2022
654b01a
add
Mar 3, 2022
55f4908
add
Mar 5, 2022
fed0694
Update test_format.py
Mar 5, 2022
a77eb63
add ndim condition
Mar 5, 2022
5c6370e
Merge branch 'main' into bug_ExtensionArray_with_2D_datetime64
Mar 5, 2022
54e1316
2d case
Mar 5, 2022
e24e05d
Merge branch 'bug_ExtensionArray_with_2D_datetime64' of https://githu…
Mar 5, 2022
7fed730
change numpy type
Mar 5, 2022
75e6228
Merge branch 'main' into bug_ExtensionArray_with_2D_datetime64
Mar 6, 2022
a8c3b46
Merge branch 'main' into bug_ExtensionArray_with_2D_datetime64
Mar 8, 2022
dee7364
tidy
Mar 8, 2022
3d7556b
Merge branch 'main' into bug_ExtensionArray_with_2D_datetime64
Mar 9, 2022
8100431
Merge branch 'main' into bug_ExtensionArray_with_2D_datetime64
Mar 9, 2022
95b423d
nested format
Mar 10, 2022
7451562
expression and variable
Mar 10, 2022
f71e11f
Update format.py
Mar 10, 2022
d927e42
Merge branch 'main' into bug_ExtensionArray_with_2D_datetime64
Mar 15, 2022
7e5739b
Merge branch 'main' into bug_ExtensionArray_with_2D_datetime64
Mar 16, 2022
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Incompatible return value type
  • Loading branch information
chean.wei.khor authored and chean.wei.khor committed Feb 26, 2022
commit 3875560077f9eeb471426dd6d69a9e34f2353d4f
6 changes: 6 additions & 0 deletions pandas/io/formats/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,9 @@ def _format_strings(self) -> list[str]:
else:
fmt_values = values

if isinstance(fmt_values, np.ndarray):
fmt_values = fmt_values.tolist()

return fmt_values


Expand Down Expand Up @@ -1835,6 +1838,9 @@ def _format_strings(self) -> list[str]:
values = [formatter(x) for x in values]
fmt_values = values

if isinstance(fmt_values, np.ndarray):
fmt_values = fmt_values.tolist()

return fmt_values


Expand Down