def rule_lookup_replace()

in dagify/converter/rules.py [0:0]


    def rule_lookup_replace(self, vals):
        print(f"Info: Rule Lookup Replace: {vals[0]}")
        # vals[0] is Lookup Value
        # vals[1] is Lookup File Path
        # vals[2] is Lookup Return Column

        if len(vals) < 3:
            print("Error: Not Enough Variables passed to Lookup Replace Rule")
            return vals[0]

        df = pd.read_csv(vals[1], header=0)
        print(df)

        return vals[0]