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

TypeError: encoding without a string argument #33

Closed
joseberlines opened this issue Feb 23, 2023 · 1 comment · Fixed by #35
Closed

TypeError: encoding without a string argument #33

joseberlines opened this issue Feb 23, 2023 · 1 comment · Fixed by #35

Comments

@joseberlines
Copy link

I have a double multindex dataframe, i.e. multindex and multindex in the columns names.
when passing it to pygwalker I get:

File ~/.local/lib/python3.10/site-packages/pygwalker/utils/fname_encodings.py:4, in fname_encode(fname)
      3 def fname_encode(fname: str):
----> 4     return base64.b64encode(bytes(fname, 'utf-8')).decode()

TypeError: encoding without a string argument

Is this because pygwalker does not admit double multindex?

@Asm-Def
Copy link
Collaborator

Asm-Def commented Feb 23, 2023

Hello,

I'm not quite sure if this pr solved your problem, but it does avoid some bugs behaving like this in some cases.

To verify this, please try pip install "pygwalker==0.1.4.2.post0" or pip install "git+https://github.com/Kanaries/pygwalker@33-typeerror"

BTW: Welcome to join our discord discord invitation link to keep track of the latest progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants