@classmethod<EOL><INDENT>def from_array(cls, arr, index=None, name=None, dtype=None, copy=False,<EOL>fastpath=False):<DEDENT>
warnings.warn("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>", FutureWarning, stacklevel=<NUM_LIT:2>)<EOL>if isinstance(arr, ABCSparseArray):<EOL><INDENT>from pandas.core.sparse.series import SparseSeries<EOL>cls = SparseSeries<EOL><DEDENT>return cls(arr, index=index, name=name, dtype=dtype,<EOL>copy=copy, fastpath=fastpath)<EOL>
Construct Series from array.

.. deprecated :: 0.23.0
    Use pd.Series(..) constructor instead.