-
Notifications
You must be signed in to change notification settings - Fork 102
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' for scv.get_df() #906
Comments
@hyjforesight, seems like an issue is related to Pandas not scVelo. I'm pretty sure the issue is that you are using older arguments for Pandas options (in your case |
hello @WeilerP Because the parameters for scVelo is scv.get_df(
data: anndata._core.anndata.AnnData,
keys: Union[str, List[str], NoneType] = None,
layer: Union[str, NoneType] = None,
index: List = None,
columns: List = None,
sort_values: bool = None,
dropna: Literal['all', 'any'] = 'all',
precision: int = None,
) I set the argument df = scv.get_df(data=adata, keys='paga/transitions_confidence', display.precision=2).T
SyntaxError: expression cannot contain assignment, perhaps you meant "=="? df = scv.get_df(data=adata, keys='paga/transitions_confidence', display.precision==2).T
SyntaxError: positional argument follows keyword argument |
Ah sorry, I thought it was a keyword directly passed to Pandas. Should have actually checked the code first. I opened a PR but unit tests are failing ATM. Will have to investigate once I find the time. |
Fixed in #907. |
Hello scVelo,
I met a
OptionError: 'Pattern matched multiple keys'
when runningscv.get_df()
of the tutorial 'RNA Velocity Basics'.Please see the code below.
Could you please help me with this issue?
Thanks!
Best,
YJ
Error output
The text was updated successfully, but these errors were encountered: