Commit 589c843 1 parent e990696 commit 589c843 Copy full SHA for 589c843
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ def __init__(
53
53
df_list_in : List [pd .DataFrame | FlascDataFrame ],
54
54
df_names : List [str ],
55
55
num_blocks : int = 10 ,
56
+ schema_overrides : dict = None ,
56
57
) -> None :
57
58
"""Initialize the AnalysisInput class.
58
59
@@ -62,10 +63,15 @@ def __init__(
62
63
df_names (List[str]): A list of names for the dataframes
63
64
num_blocks (int): The number of blocks to use for the energy ratio calculation.
64
65
Defaults to 10.
66
+ schema_overrides (dict): A dictionary of schema overrides to use when converting
67
+ the dataframes to polars. Defaults to None.
65
68
"""
66
69
# Reduce precision if needed and convert to polars
67
70
df_list = [
68
- pl .from_pandas (df_reduce_precision (df , allow_convert_to_integer = False ))
71
+ pl .from_pandas (
72
+ df_reduce_precision (df , allow_convert_to_integer = False ),
73
+ schema_overrides = schema_overrides ,
74
+ )
69
75
for df in df_list_in
70
76
]
71
77
You can’t perform that action at this time.
0 commit comments