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

"OptionError: 'Pattern matched multiple keys'" traceback in tutorial #119

Open
chris-rands opened this issue Aug 4, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@chris-rands
Copy link

Describe the bug
In tutorial:
https://muon-tutorials.readthedocs.io/en/latest/single-cell-rna-atac/pbmc10k/2-Chromatin-Accessibility-Processing.html
Error is produced as below

To Reproduce

result = atac.uns['rank_genes_groups']
groups = result['names'].dtype.names
pd.set_option("max_columns", 50)
#pd.options.display.max_rows = 50
pd.DataFrame(
    {group + '_' + key[:1]: result[key][group]
    for group in groups for key in ['names', 'genes', 'pvals']}).head(10)

Traceback

'OptionError: 'Pattern matched multiple keys' in tutorial

Fix: pd.options.display.max_rows = 50
Instead of pd.set_option("max_columns", 50)

Expected behaviour
A clear and concise description of what you expected to happen.

System
CentOS-7
Python 3.9

Additional context
pandas-dev/pandas#45619 (comment)

@chris-rands chris-rands added the bug Something isn't working label Aug 4, 2023
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