013c97fbde2b120c2980720ac37c2cac920eb1d7,featuretools/variable_types/variable.py,Datetime,__repr__,#Datetime#,226

Before Change


        super(Datetime, self).__init__(id, entity, name)

    def __repr__(self):
        return "<Variable: {} (dtype: {}, format: {})>".format(self.name, self.dtype, self.format)


class TimeIndex(Variable):
    Represents time index of entity

After Change


        super(Datetime, self).__init__(id, entity, name)

    def __repr__(self):
        ret = u"<Variable: {} (dtype: {}, format: {})>".format(self.name, self.dtype, self.format)

        // encode for python 2
        if type(ret) != str:
            ret = ret.encode("utf-8")

        return ret


class TimeIndex(Variable):
    Represents time index of entity
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: Featuretools/featuretools
Commit Name: 013c97fbde2b120c2980720ac37c2cac920eb1d7
Time: 2018-06-02
Author: kmax12@gmail.com
File Name: featuretools/variable_types/variable.py
Class Name: Datetime
Method Name: __repr__


Project Name: Featuretools/featuretools
Commit Name: 013c97fbde2b120c2980720ac37c2cac920eb1d7
Time: 2018-06-02
Author: kmax12@gmail.com
File Name: featuretools/entityset/relationship.py
Class Name: Relationship
Method Name: __repr__


Project Name: Featuretools/featuretools
Commit Name: 013c97fbde2b120c2980720ac37c2cac920eb1d7
Time: 2018-06-02
Author: kmax12@gmail.com
File Name: featuretools/variable_types/variable.py
Class Name: Variable
Method Name: __repr__


Project Name: Featuretools/featuretools
Commit Name: 013c97fbde2b120c2980720ac37c2cac920eb1d7
Time: 2018-06-02
Author: kmax12@gmail.com
File Name: featuretools/primitives/primitive_base.py
Class Name: PrimitiveBase
Method Name: __repr__