18ed53d7817338bba10a7f04cc5e250aa202206a,nilmtk/electric.py,Electric,power_series_all_data,#Electric#,61

Before Change


        chunks = []        
        for series in self.power_series(**kwargs):
            chunks.append(series)
        return pd.concat(chunks)

    def plot(self, **loader_kwargs):
        all_data = self.power_series_all_data(**loader_kwargs)
        all_data.plot()

After Change


        for series in self.power_series(**kwargs):
            if len(series) > 0:
                chunks.append(series)
        if chunks:
            all_data = pd.concat(chunks)
        else:
            all_data = None
        return all_data

    def plot(self, **loader_kwargs):
        all_data = self.power_series_all_data(**loader_kwargs)
        all_data.plot()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: nilmtk/nilmtk
Commit Name: 18ed53d7817338bba10a7f04cc5e250aa202206a
Time: 2014-11-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/electric.py
Class Name: Electric
Method Name: power_series_all_data


Project Name: reinforceio/tensorforce
Commit Name: 788fb1d674ec634f41fa8902b18dbba93d467283
Time: 2018-02-22
Author: svenmika1977@gmail.com
File Name: tensorforce/core/preprocessors/sequence.py
Class Name: Sequence
Method Name: tf_process


Project Name: tflearn/tflearn
Commit Name: 4acd61442955baa2509fdc2961284c9d2a986f34
Time: 2016-07-01
Author: aymeric.damien@gmail.com
File Name: tflearn/layers/recurrent.py
Class Name: BasicLSTMCell
Method Name: __call__