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 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.
References
Tips on the jupyter-ai Extension
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Best Way of Using HoloViews
Comments¶
DataFrame.hvplot
(via the Python packagehvplot
) is the most convenient way to use HoloViews.If you want to use HoloViews directly, it is better to create a HoloViews.Dataset object and use it for visualization.
The
groupby
option generates a plot with a dropdown list for interactively showing plots of different groups. You can overlay plots of different groups together on the same plot simplify by calling the.overlay()
Sorting Algorithms in Rust
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
- slice::sort
- slice::sort_by
- slice::sort_by_key
- slice::sort_unstable
- slice::sort_unstable_by
- slice::sort_unstable_by_key
GlideSort
GlideSort is a novel stable sorting algorithm that combines the best-case behavior of Timsort-style merge sorts for pre-sorted …
Tips on the Rust Crate SQLX
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!