0

I am new to programming and am wondering how to troubleshoot this error message? Is it about installation and how I have loaded the programs? Or is it a specific issue with pandas or pythons and my input files? Has anyone else tried running the program WGDI and seen a similar issue? Thanks for any troubleshooting assistance!


`Traceback (most recent call last):
  File "/home/user/.local/lib/python3.8/site-packages/pandas/core/indexes/range.py", line 392, in get_loc
    return self._range.index(new_key)
ValueError: 1 is not in range

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/user/.local/bin/wgdi", line 8, in <module>
    sys.exit(main())
  File "/home/user/.local/lib/python3.8/site-packages/wgdi/run.py", line 163, in main
    module_to_run(arg, value)
  File "/home/user/.local/lib/python3.8/site-packages/wgdi/run.py", line 122, in module_to_run
    run_subprogram(program, conf, name)
  File "/home/user/.local/lib/python3.8/site-packages/wgdi/run.py", line 87, in run_subprogram
    r.run()
  File "/home/user/.local/lib/python3.8/site-packages/wgdi/ks.py", line 67, in run
    df_pairs = self.auto_file()
  File "/home/breannar/.local/lib/python3.8/site-packages/wgdi/ks.py", line 56, in auto_file
    df[1] = df[1].astype(str)
  File "/home/user/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 3805, in __getitem__
    indexer = self.columns.get_loc(key)
  File "/home/user/.local/lib/python3.8/site-packages/pandas/core/indexes/range.py", line 394, in get_loc
    raise KeyError(key) from err
KeyError: 1`
Ray
  • 1

0 Answers0