Coverage for libs/sdc_etl_libs/sdc_dataframe/SDCDataframeEnums.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
2import numpy as np
3import pandas as pd
4from enum import Enum
7class SDCDFTypes(Enum):
8 PANDAS = "pandas"
9 SPARK = "spark"
11class SDCDFPandasTypes(Enum):
12 string = np.object_
13 boolean = np.bool_
14 float = np.float32
15 double = np.float64
16 int = pd.Int32Dtype()
17 long = pd.Int64Dtype()
18 datetime = np.datetime64
19 null = np.nan
20 json = np.object_
21 array = np.object_
22 name = np.object_
23 first_name = np.object_
24 last_name = np.object_
25 full_address = np.object_
26 phone_number = np.object_
27 text = np.object_
28 url = np.object_
29 file_name = np.object_
31class TransformationType(Enum):
32 pre = "PRE"
33 post = "POST"