def _get_frame_result_type(result, objs):
 if any((b.is_sparse for b in result.blocks)):
  from pandas.sparse.api import SparseDataFrame
  return SparseDataFrame
 else:
  return objs[0]

def _get_frame_result_type ( result , objs ) : if any ( ( b . is_sparse for b in result . blocks ) ) : from pandas . sparse . api import SparseDataFrame return SparseDataFrame else : return objs [ 0 ]
return appropriate class of dataframe-like concat if any block is sparseblock .