d13c77e3691795824dd342bb2906c2df56eeb26b,pythalesians/timeseries/calcs/timeseriestimezone.py,TimeSeriesTimezone,convert_index_from_UTC_to_new_york_time,#TimeSeriesTimezone#Any#,28

Before Change



    def convert_index_from_UTC_to_new_york_time(self, data_frame):
        new_york = pytz.timezone("America/New_York")
        data_frame = data_frame.tz_localize(pytz.utc).tz_convert(new_york)

        return data_frame

    def convert_index_from_UTC_to_london_time(self, data_frame):

After Change


        new_york = pytz.timezone("America/New_York")

        try:
            data_frame = data_frame.tz_localize(pytz.utc)
        except:
            pass

        data_frame = data_frame.tz_convert(new_york)

        return data_frame

    def convert_index_from_UTC_to_london_time(self, data_frame):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cuemacro/finmarketpy
Commit Name: d13c77e3691795824dd342bb2906c2df56eeb26b
Time: 2015-12-10
Author: saeedamen@hotmail.com
File Name: pythalesians/timeseries/calcs/timeseriestimezone.py
Class Name: TimeSeriesTimezone
Method Name: convert_index_from_UTC_to_new_york_time


Project Name: cuemacro/finmarketpy
Commit Name: d13c77e3691795824dd342bb2906c2df56eeb26b
Time: 2015-12-10
Author: saeedamen@hotmail.com
File Name: pythalesians/timeseries/calcs/timeseriestimezone.py
Class Name: TimeSeriesTimezone
Method Name: convert_index_from_UTC_to_london_time


Project Name: nilmtk/nilmtk
Commit Name: 6896d849c5283dce0a8a3924edf635766064f42a
Time: 2014-12-01
Author: jack-list@xlk.org.uk
File Name: nilmtk/utils.py
Class Name:
Method Name: tz_localize_naive