Skip to content

Series with PostalCode logical type can have float or str elements.  #1577

@sbadithe

Description

@sbadithe

Series with PostalCode logical type can have float or str elements.

For example,

ser = pd.Series([12345, 67890]).astype('category')
ser = ww.init_series(ser, logical_type='PostalCode') 

In the above code block, the elements of the series are floats, but in the following, they are strings:

ser = pd.Series(["12345", "67890"]).astype('category')
ser = ww.init_series(ser, logical_type='PostalCode')

Both are valid initializations. We should decide whether we want to support both data types for the PostalCode logical type.

This issue was discussed here. alteryx/featuretools#2365

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions