alteryx / alteryx/woodwork

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

Abierto
#1,577 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
155
Forks
24
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

For example,
```python
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:

```python
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. https://github.com/alteryx/featuretools/pull/2365

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.