IBM / db2-samples

Db2 application code, configuration samples, and other examples
https://www.ibm.com/analytics/developing-with-db2
Apache License 2.0
85 stars 86 forks source link

NameError: name 'pandas' is not defined #8

Closed junsulee75 closed 5 years ago

junsulee75 commented 5 years ago

When running this notebook on my python 3.7 environment, I encountered the following error

---> 14 wine = pandas.read_sql(sql,hdbi) .. NameError: name 'pandas' is not defined

Changing the relevant lines like below, it worked fine. #wine = pandas.read_sql(sql,hdbi) wine = pd.read_sql(sql,hdbi)

I guess that is because we declared in the start of code import pandas as pd Posting this just in case we need to change it.

kdrodger commented 5 years ago

Thanks for the feedback @junsulee75 . You're welcome to submit a PR to propose that change yourself, otherwise I'll try to get that corrected later today or tomorrow.

junsulee75 commented 5 years ago

Hello Kelly, Thank you for the change.