c75002546a88acc98141231171ef0ee157042bae,pandastable/plugins/remotedata.py,DataReaderPlugin,fetch,#DataReaderPlugin#,84

Before Change


        self.applyOptions()
        source = self.kwds["source"]
        start = datetime.datetime(2013, 1, 1)
        end = datetime.datetime(2016, 1, 27)
        if source == "Yahoo":
            df = web.DataReader("F", source, start, end)
        elif source == "FRED":
            df = web.DataReader("GDP", "fred", start, end)

After Change


        self.applyOptions()
        source = self.kwds["source"]
        dataset = self.kwds["dataset"]
        st = self.kwds["start"]
        e = self.kwds["end"]
        dateformat = self.kwds["dateformat"]
        start = pd.to_datetime(st, format=dateformat, errors="ignore")
        end = pd.to_datetime(e, format=dateformat, errors="ignore")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: dmnfarrell/pandastable
Commit Name: c75002546a88acc98141231171ef0ee157042bae
Time: 2017-11-12
Author: farrell.damien@gmail.com
File Name: pandastable/plugins/remotedata.py
Class Name: DataReaderPlugin
Method Name: fetch


Project Name: samuelclay/NewsBlur
Commit Name: ca054598b2e47bd2299ae2ab05ab564ea0ebc311
Time: 2010-09-17
Author: samuel@ofbrooklyn.com
File Name: utils/story_functions.py
Class Name:
Method Name: pre_process_story


Project Name: Vaibhav/Stock-Analysis
Commit Name: 6b5e593879cd7759bb6b50fdd631ab97eab775bc
Time: 2020-10-11
Author: ishuvaibhav@gmail.com
File Name: Prediction/svc.py
Class Name:
Method Name: