Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pandas bug - columns cannot be sets #24

Closed
kinverarity1 opened this issue Feb 26, 2023 · 1 comment
Closed

pandas bug - columns cannot be sets #24

kinverarity1 opened this issue Feb 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@kinverarity1
Copy link
Owner

Describe the bug
Error when using

To Reproduce

Python 3.11.0 | packaged by conda-forge | (main, Oct 25 2022, 06:12:32) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sa_gwdata
>>> wells = sa_gwdata.find_wells("5928-203 and also ULE 96")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\devapps\syski\python-sa-gwdata\sa_gwdata\waterconnect_funcs.py", line 34, in find_wells
    session = get_global_session()
              ^^^^^^^^^^^^^^^^^^^^
  File "C:\devapps\syski\python-sa-gwdata\sa_gwdata\waterconnect.py", line 85, in get_global_session
    __waterconnect_session = WaterConnectSession()
                             ^^^^^^^^^^^^^^^^^^^^^
  File "C:\devapps\syski\python-sa-gwdata\sa_gwdata\waterconnect.py", line 128, in __init__
    self.well_cache = pd.DataFrame(columns=set(self.well_id_cols.values()))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\devapps\syski\mambaforge\envs\working\Lib\site-packages\pandas\core\frame.py", line 640, in __init__
    raise ValueError("columns cannot be a set")
ValueError: columns cannot be a set

Expected behavior
Shouldn't be an exception :-)

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Python version:
  • python-sa-gwdata version: [e.g. >>> import sa_gwdata; sa_gwdata.__version__]

Additional context
Add any other context about the problem here.

@kinverarity1 kinverarity1 added the bug Something isn't working label Feb 26, 2023
@kinverarity1
Copy link
Owner Author

The fix for this was released in v0.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant