googleapis / googleapis/python-aiplatform

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

オープン
#2,356 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
api: vertex-ai
主要言語
Python
スター
905
フォーク
465
平均マージ
1日 13時間
マージ済み PR(30日)
44

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。