googleapis / googleapis/python-aiplatform

Python List expected, received proto.marshal.collections.repeated.Repeated for DOUBLE_ARRAY feature

Abierto
#2,356 0 comentarios 0 reacciones 0 asignados Ver en GitHub
api: vertex-ai
Lenguaje dominante
Python
Estrellas
905
Forks
465
Merge medio
1 d 13 h
PR fusionados (30 d)
44

Descripción

For a feature of type `DOUBLE_ARRAY`, we get the values as `proto.marshal.collections.repeated.Repeated` as opposed to a Python list when read from online feature store.

#### Environment details

- OS type and version: Windows 10
- Python version: Python 3.9.0
- pip version: pip 23.1.2
- `google-cloud-aiplatform` version: 1.28.0

#### Steps to reproduce

1. Create a feature within an entity with value type as DOUBLE_ARRAY
2. Read feature values for this entity into a pandas dataframe.
3. Check the type of the value in the feature column as `proto.marshal.collections.repeated.Repeated`.

#### Code example

```python
from google.cloud.aiplatform import Featurestore

fs = Featurestore(
featurestore_name="",
project="",
location="",
)
e = fs.get_entity_type(entity_type_id="")
df = e.read(entity_ids=[""], feature_ids=[""])
print(type(df[""].iloc[0]))
```

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.