Hi everyone. I'm using dbt-duck and in dbt a pytho...
# troubleshooting
r
Hi everyone. I'm using dbt-duck and in dbt a python model to transform my model like this:
Copy code
import pandas as pd
def model(dbt, session):
    dbt.config(packages=["pandas"])
    data= dbt.ref("train_test_split")
    data['test_column'] = 1

    return data
However, I get the error:
Copy code
Python model failed:
No module named 'pandas'
I posted in the duckdb-dbt package, but I can understand it is a meltano issue? I need to know how to install Python packages into the virtual environment Meltano creates
e
Hey @rene_czepluch! You can add packages to the
pip_url
of the dbt-duckdb plugin in your
meltano.yml
.
r
Thank you @edgar_ramirez_mondragon worked like a charm 😄
e
Awesome!