Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Series.apply + Lambda Function¶
DataFrame.apply + Lambda Function¶
axis=1: apply the lambda function on each row
List Comprehension¶
numpy.where¶
numpy.where is vectorized ifelse.
Tips on Wash Sale
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Some Tips on Tax Consequences of Wash Sales
-
Make sure the last trade is a "buy" and avoid buying the same stock/security in Dec and Jan (next year). Assuming the …
Tips on Lumibot
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
References
Calculate the Price of Stocks
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips
- You can certainly learn and try to calculate stock price by yourself. However, there are good existing services such as ValueInvesting.io and AltIndex that you can leverage.
References
https …
Tips on the jupyterlab-myst Extension
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips and Traps
- The very first run of MyST markdown in a JupyterLab cell might fail to work. Just rerun it and it should work.