JuliaPy / JuliaPy/Seaborn.jl

`PairGrid` doesnt support adding Seaborn plots

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
47
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Doing the following,

```
using Pandas
using Seaborn

df = Pandas.DataFrame(Dict("a" => [12,3,14,8,7,9], "b"=> [120,33,714,.8,887,99]))
g = Seaborn.PairGrid(df)
g.map_diag(Seaborn.kdeplot)
```

Leads to this error,
```
ERROR: PyError ($(Expr(:escape, :(ccall(#= /Users/traj/.julia/packages/PyCall/l64G5/src/pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw)))))
ValueError('callable is not supported by signature')
File "/Users/traj/Documents/Discover/venv/lib/python3.8/site-packages/seaborn/axisgrid.py", line 1351, in map_diag
if "hue" not in signature(func).parameters:
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/inspect.py", line 3093, in signature
return Signature.from_callable(obj, follow_wrapped=follow_wrapped)
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/inspect.py", line 2842, in from_callable
return _signature_from_callable(obj, sigcls=cls,
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/inspect.py", line 2405, in _signature_from_callable
raise ValueError('callable {!r} is not supported by signature'.format(obj))
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.