def _concat_sparse(to_concat, axis=<NUM_LIT:0>, typs=None):
from pandas.core.arrays import SparseArray<EOL>fill_values = [x.fill_value for x in to_concat<EOL>if isinstance(x, SparseArray)]<EOL>fill_value = fill_values[<NUM_LIT:0>]<EOL>to_concat = [x if isinstance(x, SparseArray)<EOL>else SparseArray(x.squeeze(), fill_value=fill_value)<EOL>for x in to_concat]<EOL>return SparseArray._concat_same_type(to_concat)<EOL>
provide concatenation of an sparse/dense array of arrays each of which is a
single dtype

Parameters
----------
to_concat : array of arrays
axis : axis to provide concatenation
typs : set of to_concat dtypes

Returns
-------
a single array, preserving the combined dtypes