Discover more from Daily Dose of Data Science
Inspect Program Flow with IceCream
While debugging, one often writes many 𝗽𝗿𝗶𝗻𝘁() statements to inspect the program's flow. This is especially true when we have many IF conditions.
Using empty 𝗶𝗰() statements from the IceCream library can be a better alternative here. It outputs many additional details that help in inspecting the flow of the program.
This includes the line number, the name of the function, the file name, etc.
Read more in my Medium Blog: Link.
Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (250+ pages) with 200+ tips.
I like to explore, experiment and write about data science concepts and tools. You could connect with me on LinkedIn.