File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -461,9 +461,7 @@ def __init__(
461
461
if is_list_like (data [0 ]) and getattr (data [0 ], "ndim" , 1 ) == 1 :
462
462
if is_named_tuple (data [0 ]) and columns is None :
463
463
columns = data [0 ]._fields
464
- arrays , columns = to_arrays (
465
- data , columns , dtype = dtype , to_integer_array = to_integer_array
466
- )
464
+ arrays , columns = to_arrays (data , columns , dtype = dtype )
467
465
columns = ensure_index (columns )
468
466
469
467
# set the index
@@ -859,9 +857,9 @@ def style(self):
859
857
... index=['panda', 'polar', 'koala'])
860
858
>>> df
861
859
species population
862
- panda bear 1864
863
- polar bear 22000
864
- koala marsupial 80000
860
+ panda bear 1864
861
+ polar bear 22000
862
+ koala marsupial 80000
865
863
>>> for label, content in df.items():
866
864
... print('label:', label)
867
865
... print('content:', content, sep='\n')
You can’t perform that action at this time.
0 commit comments