Skip to content

Commit 4e6d554

Browse files
committed
Adding pandas Int64 support [fix astropy#9280]
1 parent ad4e0f2 commit 4e6d554

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎astropy/table/table.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3283,10 +3283,7 @@ def _encode_mixins(tbl):
32833283
for name, column in tbl.columns.items():
32843284
if isinstance(column, MaskedColumn) and np.any(column.mask):
32853285
if column.dtype.kind in ['i', 'u']:
3286-
out[name] = column.astype(float).filled(np.nan)
3287-
warnings.warn(
3288-
"converted column '{}' from integer to float".format(
3289-
name), TableReplaceWarning, stacklevel=3)
3286+
out[name] = pd.Series(column, dtype='Int64')
32903287
elif column.dtype.kind in ['f', 'c']:
32913288
out[name] = column.filled(np.nan)
32923289
else:

0 commit comments

Comments
 (0)