1dfe22c53b78e7be488dfa8895770997f4028fc1,tmtoolkit/preprocess/_tmpreproc.py,TMPreproc,tokens_dataframe,#TMPreproc#,215

Before Change


        
        // note that generating a datatable first and converting it to pandas is faster than generating a pandas data
        // frame right away
        return self.tokens_datatable.to_pandas().set_index(["doc", "position"])

    @property
    def tokens_with_pos_tags(self):

After Change


        // note that generating a datatable first and converting it to pandas is faster than generating a pandas data
        // frame right away

        if USE_DT:
            df = self.tokens_datatable.to_pandas()
        else:
            df = self.tokens_datatable
        return df.set_index(["doc", "position"])

    @property
    def tokens_with_pos_tags(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 1dfe22c53b78e7be488dfa8895770997f4028fc1
Time: 2019-12-10
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/preprocess/_tmpreproc.py
Class Name: TMPreproc
Method Name: tokens_dataframe


Project Name: uber/petastorm
Commit Name: ccf738e6efdc90f9643bdb6e20e064c7ba924379
Time: 2019-04-09
Author: yevgeni@uber.com
File Name: petastorm/arrow_reader_worker.py
Class Name: ArrowReaderWorkerResultsQueueReader
Method Name: read_next


Project Name: havakv/pycox
Commit Name: d9f4448777a924ed71d82bf84eda6bb88fd96641
Time: 2018-03-13
Author: kvamme@samba8.ad.nr.no
File Name: pycox/callbacks.py
Class Name: PlotProgress
Method Name: on_epoch_end