What does the following syntax mean?
use tokio_tungstenite::{connect_async, tungstenite::protocol::Message};
Is it equivalent to this?
use tokio_tungstenite::connect_async;
use tokio_tungstenite::connect_async::tungstenite::protocol::Message;
I doubt it: tokio_tungstenite::connect_async::tungstenite::protocol::Message is not a symbol.
It is equivalent to:
use tokio_tungstenite::connect_async;
use tokio_tungstenite::tungstenite::protocol::Message;
Related
Instead of:
=ZÄHLENWENN([B16.xlsx]ListeVU!$Y:$Y;F5)
I would like to have like:
=ZÄHLENWENN(["C6".xlsx]ListeVU!$Y:$Y;F5)
But this does not work.
As per my comment you'd need to use INDIRECT(). The right syntax would be:
=COUNTIF(INDIRECT("'["&C6&".xlsx]ListeVU'!$Y:$Y"),F5)
Or in german:
=ZÄHLENWENN(INDIREKT("'["&C6&".xlsx]ListeVU'!$Y:$Y");F5)
I've checked the docs (https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.eq.html)
I'm thinking something like below where I can use and re.I to ingnore case or use any other flag for that matter.
df.column.eq('Male').sum()
You can use the Series.str.contains function with case=False argument, ^Male$ as regex pattern and the regex=True argument:
df['column'].str.contains('^Male$', case=False, regex=True).sum()
See the Series.str.contains documentation.
Also, see What do ^ and $ mean in a regular expression?
I'm using a IF AND statement to check a simple statement, for example A>B&BB, I get FALSE. How is that even possible?
My data sample:
It works both ways if I use AND(), but I prefer to use &.
You may "prefer to use &" but unfortunately this operator in Excel has a different meaning: string concatenation. If you dont want to use AND, you can use * instead; but you will need to parenthesize the terms.
=IF((A2>C2)*(C2<B2), TRUE, FALSE)
Use AND():
IF(AND(A2>C2,C2<B2),TRUE,FALSE)
Or as was written in comments you can use multiplication:
IF((A2>C2)*(C2<B2),TRUE,FALSE)
FYI - you don't need IF().
If you use AND(A2>C2,C2<B2) the result will be Boolean (TRUE/FALSE).
I'm having trouble trying to use replace characters in MS excel. Help says * and ? can both replace characters, but if I try using them in IF, I don't get correct results.
For example:
A1="something"
=IF(A1="*mething";"yes";"no")
I always get no... How to use * correctly?
wildcards don't work with comparison operators like =
To achieve what you want you can use COUNTIF which does accept wildcards, i.e.
=IF(COUNTIF(A1;"*mething")>0;"yes";"no")
or RIGHT function like
=IF(RIGHT(A1;7)="mething";"yes";"no")
Wildcards cannot be used in this context. Use something like:
=IF(ISERROR(FIND("mething",A1)),"No","Yes")
How do I do equivalent of python's str.split in DrScheme? SRFI-13 doesn't seem to have it provided.
regexp-split, probably, with regexp-quote on the string first to make it not behave like a regexp.
string-tokenize in SRFI-13