I am trying to learn pandas and I could not import it into my code.
I looked at other answers on this site and none of them worked.
I just installed anaconda and installed everything through the cond.
Here is an example script that I am trying to run.
import pandas as pd writer = pd.ExcelWriter('farm_data.xlsx', engine='xlsxwriter') df.to_excel(writer, sheet_name='Sheet1') workbook = writer.book worksheet = writer.sheets['Sheet1'] chart = workbook.add_chart({'type': 'column'})
And the error returns.
Traceback (last last call):
File "C: \ Users \ thiet01 \ Documents \ Python Scripts \ new 1.py", line 1,
import pandas
ImportError: no module named 'pandas'
If you need more information, let me know and I can provide it.
Thanks in advance for your help.
source share