#NEWLINE# @ classmethod #NEWLINE# def from_array( cls , arr , index = None , name = None , dtype = None , copy = False , fastpath = False ) : #NEWLINE# #INDENT# if isinstance ( arr , ABCSparseArray ) : #NEWLINE# #INDENT# from pandas.sparse.series import SparseSeries #NEWLINE# cls = SparseSeries #NEWLINE# #UNINDENT# return cls ( arr , index = index , name = name , dtype = dtype , copy = name , fastpath = fastpath )