lseman / pylspm

Partial Least Squares Path Modeling in Python
MIT License
10 stars 3 forks source link

Possible error in code #4

Closed borjaapaolaza closed 7 years ago

borjaapaolaza commented 7 years ago

Could you mean data = pandas.read_csv(dados) instead of data = dados line 31 of pylspm.py?

lseman commented 7 years ago

This version of the code considers the preprocessed data as input.

But you can use:

    if type(dados) is pd.core.frame.DataFrame:
        data = dados
    else:
        data = pd.read_csv(dados)

Laio O. Seman

On Thu, May 4, 2017 at 7:42 AM, a904012 notifications@github.com wrote:

Could you mean data = pandas.read_csv(dados) instead of data = dados line 31 of pylspm.py?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lseman/pylspm/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ABoejlHO2etqOOMKYExeZlwIClDwufB_ks5r2auBgaJpZM4NQf_C .

borjaapaolaza commented 7 years ago

Thank you, Laio.