Slackbot
02/21/2024, 5:57 PMElijah Ben Izzy
02/21/2024, 5:59 PMice_position_mapping
fn?). That’s a weird-looking bug, but it actually does seem supported.
90% chance that the split by commans doesn’t work here — its a little cheap how it does it.Seth Stokes
02/21/2024, 5:59 PM@schema.output(
("LOGICAL_COMMODITY", "str"),
("PHYSICAL_COMMODITY", "str"),
("GENERIC_CONTRACT_TYPE", Literal["F","O","M","D"])
)
def ice_position_mapping() -> pd.DataFrame:
"""Used for mapping `contract_type` to exchange product code."""
_ice_pos = ice_position_file_guide()[
["LOGICAL_COMMODITY", "PHYSICAL_COMMODITY", "GENERIC_CONTRACT_TYPE"]
]
return _ice_pos
Elijah Ben Izzy
02/21/2024, 6:00 PM@schema.output(
("LOGICAL_COMMODITY", "str"),
("PHYSICAL_COMMODITY", "str"),
("GENERIC_CONTRACT_TYPE", 'Literal["F":"O":"M":"D"]')
)
Seth Stokes
02/21/2024, 6:02 PMSeth Stokes
02/21/2024, 6:16 PMpandas.DataFrame.dtypes
from the return
into schema.output
? Not sure if that would be desirable functionality for anyone else. For annotation probably, but may get tricky if schema.output
is used to validateElijah Ben Izzy
02/21/2024, 6:17 PMSeth Stokes
02/21/2024, 6:25 PMdriver.visualize_execution
wouldn’t be able to see itElijah Ben Izzy
02/21/2024, 6:32 PM