def _postprocess_for_cut(fac, bins, retbins, x_is_series,<EOL>series_index, name, dtype):
if x_is_series:<EOL><INDENT>fac = Series(fac, index=series_index, name=name)<EOL><DEDENT>if not retbins:<EOL><INDENT>return fac<EOL><DEDENT>bins = _convert_bin_to_datelike_type(bins, dtype)<EOL>return fac, bins<EOL>
handles post processing for the cut method where
we combine the index information if the originally passed
datatype was a series