From coding Flashcards
1
Q
for a df, do something to every row or every column
A
DataFrame.apply(func, axis=0, raw=False, result_type=None, args=(), by_row=’compat’, engine=’python’, engine_kwargs=None, **kwargs)
2
Q
Specify the return type of a function using Python’s type hints, e.g. specify returning a tuple with str, info, and exchange
A
code: -> typing.Tuple[str, Info, Exchange]:
3
Q
Random variable of a Standard Normal:
A
Z
4
Q
A