Guy McCombe
01/30/2023, 3:45 PMins
parameter? My specific case is passing a google sheet URL to an asset and having an io manager read it in as a pandas DataFrame. This was how I imagined it might look but, it raises a code location error that AttributeError: 'In' object has no attribute 'key'
.
@asset(
io_manager_key="gsheets_io",
config_schema={
"input_url": str,
},
ins={
"df": In(
input_manager_key="gsheets_io",
asset_key=lambda context: AssetKey([context.config["input_url"]]),
)
},
)
def asset_fn(context, df):
...
jamie
01/30/2023, 4:28 PMinput_url
need to change between materializations of the asset?Guy McCombe
01/30/2023, 4:31 PMjamie
01/30/2023, 4:37 PMGuy McCombe
01/30/2023, 4:38 PMjamie
01/30/2023, 4:41 PM