d13c77e3691795824dd342bb2906c2df56eeb26b,pythalesians/timeseries/calcs/timeseriestimezone.py,TimeSeriesTimezone,convert_index_from_UTC_to_london_time,#TimeSeriesTimezone#Any#,34

Before Change



    def convert_index_from_UTC_to_london_time(self, data_frame):
        london = pytz.timezone("Europe/London")
        data_frame = data_frame.tz_localize(pytz.utc).tz_convert(london)

        return data_frame

    def convert_index_time_zone(self, data_frame, from_tz, to_tz):

After Change


        london = pytz.timezone("Europe/London")

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

        data_frame = data_frame.tz_convert(london)

        return data_frame

    def convert_index_time_zone(self, data_frame, from_tz, to_tz):
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_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


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