55import numpy as np
66import pytest
77
8- flights_df = pd .read_csv ("https://objectstorage.us-ashburn-1.oraclecloud.com/p/hh2NOgFJbVSg4amcLM3G3hkTuHyBD-8aE_iCsuZKEvIav1Wlld-3zfCawG4ycQGN/n/ociodscdev/b/oci-feature-store/o/beta/data/flights/flights.csv" )
9- flights_df_mixed = pd .DataFrame (flights_df ["CANCELLATION_REASON" ])
108
119
1210class TestDataTypePandasMixed (FeatureStoreTestCase ):
11+ flights_df = pd .read_csv ("https://objectstorage.us-ashburn-1.oraclecloud.com/p/hh2NOgFJbVSg4amcLM3G3hkTuHyBD-8aE_iCsuZKEvIav1Wlld-3zfCawG4ycQGN/n/ociodscdev/b/oci-feature-store/o/beta/data/flights/flights.csv" )
12+ flights_df_mixed = pd .DataFrame (flights_df ["CANCELLATION_REASON" ])
1313
1414 input_feature_details_mixed = [
15- FeatureDetail ("CANCELLATION_REASON" ).with_feature_type (FeatureType .STRING ).with_order_number (1 )]
16-
15+ FeatureDetail ("CANCELLATION_REASON" ).with_feature_type (FeatureType .STRING ).with_order_number (1 )]
1716 def define_feature_group_resource_with_pandas_mixed_infer_schema (
1817 self , entity_id , feature_store_id
1918 ):
@@ -27,7 +26,7 @@ def define_feature_group_resource_with_pandas_mixed_infer_schema(
2726 .with_entity_id (entity_id )
2827 .with_feature_store_id (feature_store_id )
2928 .with_primary_keys ([])
30- .with_schema_details_from_dataframe (flights_df_mixed )
29+ .with_schema_details_from_dataframe (self . flights_df_mixed )
3130 .with_statistics_config (False )
3231 )
3332
@@ -76,7 +75,7 @@ def test_feature_group_pandas_mixed_with_schema(self):
7675 feature_group .create ()
7776 assert feature_group .oci_feature_group .id
7877
79- feature_group .materialise (flights_df_mixed )
78+ feature_group .materialise (self . flights_df_mixed )
8079 df = feature_group .select ().read ()
8180 assert df
8281
0 commit comments