Skip to content

Commit 0d47017

Browse files
wrapper228Andrew Atamanyuk
authored and
Andrew Atamanyuk
committed
numeric feature processing
1 parent 6a37bfc commit 0d47017

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tensorflow_data_validation/api/validation_api.py

+12
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import logging
2323
import apache_beam as beam
2424
import pyarrow as pa
25+
import pandas as pd
2526
import tensorflow as tf
2627
from tensorflow_data_validation import constants
2728
from tensorflow_data_validation import types
@@ -52,6 +53,17 @@
5253
anomalies_pb2.AnomalyInfo.NO_DATA_IN_SPAN,
5354
])
5455

56+
def preprocess_numerical_to_categorical_by_own_quantiles(
57+
dataframe: pd.DataFrame,
58+
):
59+
# TODO: refactor initial prototype
60+
return dataframe
61+
62+
def preprocess_numerical_to_categorical_by_training_quantiles(
63+
dataframe: pd.DataFrame,
64+
):
65+
# TODO: refactor initial prototype
66+
return dataframe
5567

5668
def infer_schema(
5769
statistics: statistics_pb2.DatasetFeatureStatisticsList,

0 commit comments

Comments
 (0)