def _unpickle_sparse_frame_compat(self, state):
series, cols, idx, fv, kind = state<EOL>if not isinstance(cols, Index):  <EOL><INDENT>from pandas.io.pickle import _unpickle_array<EOL>columns = _unpickle_array(cols)<EOL><DEDENT>else:<EOL><INDENT>columns = cols<EOL><DEDENT>if not isinstance(idx, Index):  <EOL><INDENT>from pandas.io.pickle import _unpickle_array<EOL>index = _unpickle_array(idx)<EOL><DEDENT>else:<EOL><INDENT>index = idx<EOL><DEDENT>series_dict = DataFrame()<EOL>for col, (sp_index, sp_values) in series.items():<EOL><INDENT>series_dict[col] = SparseSeries(sp_values, sparse_index=sp_index,<EOL>fill_value=fv)<EOL><DEDENT>self._data = to_manager(series_dict, columns, index)<EOL>self._default_fill_value = fv<EOL>self._default_kind = kind<EOL>
Original pickle format