Abhishek Bhatia
02/22/2024, 11:04 AMmypy
equivalent for kedro? i.e. When I define a node with certain type hints (for e.g. spark), but in my node declaration, I pass it an incompatible type (for e.g. pandas).
Thanks! 🙂datajoely
02/22/2024, 11:04 AMdatajoely
02/22/2024, 11:04 AMAbhishek Bhatia
02/22/2024, 11:04 AMdatajoely
02/22/2024, 11:05 AMdatajoely
02/22/2024, 11:05 AMAbhishek Bhatia
02/22/2024, 11:05 AMdatajoely
02/22/2024, 11:06 AMAbhishek Bhatia
02/22/2024, 11:08 AMmy_dataset@pandas:
type: pandas.CSVDataSet
my_dataset@spark:
type: spark.SparkDataSet
def my_func(sdf: pyspark.sql.DataFrame):
pass
node(
my_func,
inputs=[
"my_dataset@pandas"
],
)
Abhishek Bhatia
02/22/2024, 11:09 AMdatajoely
02/22/2024, 11:35 AMmy_func
and it would run before the data is processed by the functionDeepyaman Datta
02/22/2024, 2:29 PMIñigo Hidalgo
02/22/2024, 2:43 PM