@@ -1082,7 +1082,6 @@ def unstack(self, unstacker, fill_value) -> ArrayManager:
1082
1082
1083
1083
def as_array (
1084
1084
self ,
1085
- transpose : bool = False ,
1086
1085
dtype = None ,
1087
1086
copy : bool = False ,
1088
1087
na_value = lib .no_default ,
@@ -1092,8 +1091,6 @@ def as_array(
1092
1091
1093
1092
Parameters
1094
1093
----------
1095
- transpose : bool, default False
1096
- If True, transpose the return array.
1097
1094
dtype : object, default None
1098
1095
Data type of the return array.
1099
1096
copy : bool, default False
@@ -1109,7 +1106,7 @@ def as_array(
1109
1106
"""
1110
1107
if len (self .arrays ) == 0 :
1111
1108
empty_arr = np .empty (self .shape , dtype = float )
1112
- return empty_arr .transpose () if transpose else empty_arr
1109
+ return empty_arr .transpose ()
1113
1110
1114
1111
# We want to copy when na_value is provided to avoid
1115
1112
# mutating the original object
@@ -1137,8 +1134,6 @@ def as_array(
1137
1134
result [isna (result )] = na_value
1138
1135
1139
1136
return result
1140
- # FIXME: don't leave commented-out
1141
- # return arr.transpose() if transpose else arr
1142
1137
1143
1138
1144
1139
class SingleArrayManager (BaseArrayManager , SingleDataManager ):
0 commit comments