Exemplo n.º 1
0
Arquivo: plm.py Projeto: ara818/pandas
    def _unstack_vector(self, vec, index=None):
        if index is None:
            index = self._y_trans.index
        panel = LongPanel(vec.reshape((len(vec), 1)), index=index,
                          columns=['dummy'])

        return panel.to_wide()['dummy']
Exemplo n.º 2
0
    def _unstack_vector(self, vec, index=None):
        if index is None:
            index = self._y_trans.index
        panel = LongPanel(vec.reshape((len(vec), 1)),
                          index=index,
                          columns=['dummy'])

        return panel.to_wide()['dummy']