googleapis / googleapis/python-aiplatform

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

Open
#2,356 0 comments 0 reactions 0 assignees View on GitHub
api: vertex-ai
Dominant language
Python
Stars
905
Forks
465
Avg merge
1d 13h
Merged PRs (30d)
44

Description

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]))
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.