Skip to content

Commit 8f68ea2

Browse files
linter
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 184f0ef commit 8f68ea2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

sdk/python/feast/feature_store.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,9 +1519,9 @@ def _offline_write():
15191519
await run_in_threadpool(_offline_write)
15201520

15211521
def _validate_and_convert_input_data(
1522-
self,
1523-
df: Optional[pd.DataFrame],
1524-
inputs: Optional[Union[Dict[str, List[Any]], pd.DataFrame]]
1522+
self,
1523+
df: Optional[pd.DataFrame],
1524+
inputs: Optional[Union[Dict[str, List[Any]], pd.DataFrame]],
15251525
) -> Optional[pd.DataFrame]:
15261526
"""
15271527
Validates input parameters and converts them to a pandas DataFrame.
@@ -1663,7 +1663,10 @@ def _validate_vector_features(self, feature_view, df: pd.DataFrame) -> None:
16631663
df_vector_feature_index = df.columns.get_loc(fv_vector_feature_name)
16641664

16651665
if feature_view.features[0].vector_length != 0:
1666-
if df.shape[df_vector_feature_index] > feature_view.features[0].vector_length:
1666+
if (
1667+
df.shape[df_vector_feature_index]
1668+
> feature_view.features[0].vector_length
1669+
):
16671670
raise ValueError(
16681671
f"The dataframe for {fv_vector_feature_name} column has {df.shape[1]} vectors "
16691672
f"which is greater than expected (i.e {feature_view.features[0].vector_length}) "

0 commit comments

Comments
 (0)