To comprehend and remember more, make personal notes you can revisit. For digital readers, highlight

yuthathu
8 min readDec 5, 2020

--

In the above function, I used .rename method to rename the lng column to lon. In the original, dirty function, a new column was created and the old one was dropped which was unnecessary.

Comprehension and knowledge application is more important to me now than ever before. Without understanding and the ability to remember what I read, reading will be a waste of my time.

The first sentence should contain the purpose of the function, like a topic sentence in an essay. It should start right after opening the triple quotes. Optional explanations should be given as separate, unindented paragraphs:

If you aim to read 100 books a year, the important question you should be asking yourself is: If I speed-read and hit my goal, can I still recall and apply greater percentage what I’m reading in the future?
5. Don’t let it slip to the dermatologist who is treating your bite that you are going on a swimming trip to Lake Tahoe next week after she just explicitly told you not to put your bite in lake water.
Now, you might be thinking: ‘I never had to spend more than 2–3 minutes if my code generates an error. I could always solve them with simple print statements and playing around…’ That’s a classic rookie misunderstanding.

Reading upgrades my mental models and informs my ideas as a writer. ― Stephen King once said, “If you don’t have time to read, you don’t have the time (or the tools) to write. Simple as that.”

Charlie Munger, Warren Buffett’s business partner and a billionaire himself, once noted: “In my whole life, I have known no wise people (over a broad subject matter area) who didn’t read all the time — none. Zero. You’d be amazed at how much Warren reads — and how much I read. My children laugh at me. They think I’m a book with a couple of legs sticking out.”

“Read to understand, read to connect, and read to imagine. Books really are magical, and I do wish more of us would spend time with them. But let’s not pretend that treating them as a ticket to success will make you successful,” writes Zat Rana.

https://www.iglooconsulting.com.au/rug/t-v-e1.html
https://www.iglooconsulting.com.au/rug/t-v-e2.html
https://www.iglooconsulting.com.au/rug/t-v-e3.html
https://www.iglooconsulting.com.au/rug/t-v-e4.html
https://bojotogo.com/smc/t-v-i1.html
https://bojotogo.com/smc/t-v-i2.html
https://bojotogo.com/smc/t-v-i3.html
https://bojotogo.com/smc/t-v-i4.html
https://www.seattleaudubon.org/rte/t-v-i1.html
https://www.seattleaudubon.org/rte/t-v-i2.html
https://www.seattleaudubon.org/rte/t-v-i3.html
https://www.seattleaudubon.org/rte/t-v-i4.html
https://bojotogo.com/smc/t-v-f1.html
https://bojotogo.com/smc/t-v-f2.html
https://bojotogo.com/smc/t-v-f3.html
https://bojotogo.com/smc/t-v-f4.html
https://www.seattleaudubon.org/rte/t-v-f1.html
https://www.seattleaudubon.org/rte/t-v-f2.html
https://www.seattleaudubon.org/rte/t-v-f3.html
https://www.seattleaudubon.org/rte/t-v-f4.html
https://bojotogo.com/smc/t-v-g1.html
https://bojotogo.com/smc/t-v-g2.html
https://bojotogo.com/smc/t-v-g3.html
https://www.seattleaudubon.org/rte/t-v-g1.html
https://www.seattleaudubon.org/rte/t-v-g2.html
https://www.seattleaudubon.org/rte/t-v-g3.html
https://bojotogo.com/smc/t-v-h1.html
https://bojotogo.com/smc/t-v-h2.html
https://bojotogo.com/smc/t-v-h3.html
https://www.seattleaudubon.org/rte/t-v-h1.html
https://www.seattleaudubon.org/rte/t-v-h2.html
https://www.seattleaudubon.org/rte/t-v-h3.html
https://bojotogo.com/smc/a-v-c1.html
https://bojotogo.com/smc/a-v-c2.html
https://bojotogo.com/smc/a-v-c3.html
https://bojotogo.com/smc/a-v-c4.html
https://bojotogo.com/smc/a-v-c5.html
https://bojotogo.com/smc/a-v-c6.html
https://bojotogo.com/smc/a-v-c7.html
https://bojotogo.com/smc/a-v-c8.html
https://bojotogo.com/smc/a-v-c9.html
https://bojotogo.com/smc/a-v-d1.html
https://bojotogo.com/smc/a-v-d2.html
https://www.seattleaudubon.org/rte/a-v-c1.html
https://www.seattleaudubon.org/rte/a-v-c2.html
https://www.seattleaudubon.org/rte/a-v-c4.html
https://www.seattleaudubon.org/rte/a-v-c5.html
https://www.iglooconsulting.com.au/rug/a-v-a1.html
https://www.iglooconsulting.com.au/rug/a-v-a2.html
https://www.iglooconsulting.com.au/rug/a-v-a3.html
https://www.iglooconsulting.com.au/rug/a-v-a4.html
https://bojotogo.com/smc/h-v-c1.html
https://bojotogo.com/smc/h-v-c2.html
https://bojotogo.com/smc/h-v-c3.html
https://bojotogo.com/smc/h-v-c4.html
https://bojotogo.com/smc/h-v-c5.html
https://bojotogo.com/smc/h-v-c6.html
https://bojotogo.com/smc/h-v-c7.html
https://bojotogo.com/smc/h-v-ma1.html
https://bojotogo.com/smc/h-v-ma2.html
https://bojotogo.com/smc/h-v-ma3.html
https://bojotogo.com/smc/h-v-mm1.html
https://bojotogo.com/smc/h-v-mm2.html
https://www.seattleaudubon.org/rte/h-v-c1.html
https://www.seattleaudubon.org/rte/h-v-c2.html
https://www.seattleaudubon.org/rte/h-v-c3.html
https://www.seattleaudubon.org/rte/h-v-c4.html
https://www.seattleaudubon.org/rte/h-v-c5.html
https://www.seattleaudubon.org/rte/h-v-c6.html
https://www.seattleaudubon.org/rte/h-v-c7.html
https://www.seattleaudubon.org/rte/h-v-ma1.html
https://www.seattleaudubon.org/rte/h-v-ma2.html
https://www.seattleaudubon.org/rte/h-v-ma3.html
https://www.seattleaudubon.org/rte/h-v-mm1.html
https://www.seattleaudubon.org/rte/h-v-mm2.html
https://www.iglooconsulting.com.au/rug/h-v-d1.html
https://www.iglooconsulting.com.au/rug/h-v-d2.html
https://www.iglooconsulting.com.au/rug/h-v-d3.html
https://www.iglooconsulting.com.au/rug/h-v-d4.html
https://www.iglooconsulting.com.au/rug/h-v-d5.html
https://www.iglooconsulting.com.au/rug/h-v-d6.html
https://www.iglooconsulting.com.au/rug/h-v-d7.html
https://www.iglooconsulting.com.au/rug/h-v-d8.html
https://www.iglooconsulting.com.au/rug/h-v-d9.html
https://www.seattleaudubon.org/rte/mi-v-a1.html
https://www.seattleaudubon.org/rte/mi-v-a10.html
https://www.seattleaudubon.org/rte/mi-v-a2.html
https://www.seattleaudubon.org/rte/mi-v-a3.html
https://www.seattleaudubon.org/rte/mi-v-a4.html
https://www.seattleaudubon.org/rte/mi-v-a5.html
https://www.seattleaudubon.org/rte/mi-v-a6.html
https://www.seattleaudubon.org/rte/mi-v-a7.html
https://www.seattleaudubon.org/rte/mi-v-a8.html
https://www.seattleaudubon.org/rte/mi-v-a9.html
https://bojotogo.com/smc/mi-v-a1.html
https://bojotogo.com/smc/mi-v-a10.html
https://bojotogo.com/smc/mi-v-a2.html
https://bojotogo.com/smc/mi-v-a3.html
https://bojotogo.com/smc/mi-v-a4.html
https://bojotogo.com/smc/mi-v-a5.html
https://bojotogo.com/smc/mi-v-a6.html
https://bojotogo.com/smc/mi-v-a7.html
https://bojotogo.com/smc/mi-v-a8.html
https://bojotogo.com/smc/mi-v-a9.html
https://www.iglooconsulting.com.au/rug/s-v-b1.html
https://www.iglooconsulting.com.au/rug/s-v-b2.html
https://www.iglooconsulting.com.au/rug/s-v-b3.html
https://www.iglooconsulting.com.au/rug/s-v-b4.html
https://www.iglooconsulting.com.au/rug/s-v-b5.html
https://www.iglooconsulting.com.au/rug/s-v-b6.html
https://bojotogo.com/smc/g-v-w1.html
https://bojotogo.com/smc/g-v-w2.html
https://bojotogo.com/smc/g-v-w3.html
https://bojotogo.com/smc/g-v-w4.html
https://bojotogo.com/smc/g-v-w5.html
https://www.iglooconsulting.com.au/rug/g-v-w1.html
https://www.iglooconsulting.com.au/rug/g-v-w2.html
https://www.iglooconsulting.com.au/rug/g-v-w3.html
https://www.iglooconsulting.com.au/rug/g-v-w4.html
https://www.iglooconsulting.com.au/rug/g-v-w5.html
https://bojotogo.com/smc/t-v-i5.html
https://bojotogo.com/smc/a-v-a1.html
https://bojotogo.com/smc/a-v-a10.html
https://bojotogo.com/smc/a-v-a2.html
https://bojotogo.com/smc/a-v-a3.html
https://bojotogo.com/smc/a-v-a4.html
https://bojotogo.com/smc/a-v-a5.html
https://bojotogo.com/smc/a-v-a6.html
https://bojotogo.com/smc/a-v-a7.html
https://bojotogo.com/smc/a-v-a8.html
https://bojotogo.com/smc/a-v-a9.html
https://bojotogo.com/smc/a-v-b1.html
https://bojotogo.com/smc/a-v-b2.html
https://bojotogo.com/smc/a-v-b3.html
https://bojotogo.com/smc/g-v-q1.html
https://bojotogo.com/smc/g-v-q2.html
https://bojotogo.com/smc/g-v-q3.html
https://bojotogo.com/smc/g-v-q4.html
https://bojotogo.com/smc/g-v-q5.html
https://bojotogo.com/smc/g-v-q6.html
https://bojotogo.com/smc/g-v-q7.html
https://bojotogo.com/smc/g-v-q8.html
https://bojotogo.com/smc/g-v-q9.html
https://bojotogo.com/smc/g-v-q10.html
https://bojotogo.com/smc/g-v-q11.html
https://bojotogo.com/smc/g-v-q12.html
https://bojotogo.com/smc/s-v-a1.html
https://bojotogo.com/smc/s-v-a2.html
https://bojotogo.com/smc/s-v-a3.html
https://bojotogo.com/smc/s-v-a4.html
https://bojotogo.com/smc/s-v-a5.html
https://bojotogo.com/smc/s-v-a6.html
https://bojotogo.com/smc/s-v-a7.html
https://bojotogo.com/smc/s-v-a8.html
https://bojotogo.com/smc/s-v-a9.html
https://bojotogo.com/smc/s-v-a10.html
https://bojotogo.com/smc/s-v-a11.html
https://bojotogo.com/smc/s-v-a12.html
https://bojotogo.com/smc/s-v-a13.html
https://bojotogo.com/smc/s-v-a14.html
https://bojotogo.com/smc/s-v-a15.html
https://bojotogo.com/smc/f-v-a1.html
https://bojotogo.com/smc/f-v-a2.html
https://bojotogo.com/smc/f-v-a3.html
https://bojotogo.com/smc/f-v-a4.html
https://bojotogo.com/smc/f-v-a5.html
https://bojotogo.com/smc/f-v-a6.html
https://bojotogo.com/smc/f-v-a7.html
https://bojotogo.com/smc/f-v-a8.html
https://bojotogo.com/smc/f-v-a9.html
https://bojotogo.com/smc/f-v-b1.html
https://bojotogo.com/smc/f-v-b2.html
https://bojotogo.com/smc/f-v-b3.html
https://bojotogo.com/smc/f-v-b4.html
https://bojotogo.com/smc/f-v-b5.html
https://bojotogo.com/smc/f-v-b6.html
https://bojotogo.com/smc/f-v-b7.html
https://bojotogo.com/smc/a-v-b4.html
https://bojotogo.com/smc/a-v-b5.html
https://bojotogo.com/smc/a-v-b6.html
https://bojotogo.com/smc/t-v-a1.html
https://bojotogo.com/smc/t-v-a2.html
https://bojotogo.com/smc/t-v-a3.html
https://bojotogo.com/smc/t-v-b1.html
https://bojotogo.com/smc/t-v-b2.html
https://bojotogo.com/smc/t-v-c1.html
https://bojotogo.com/smc/t-v-c2.html
https://bojotogo.com/smc/t-v-c3.html
https://bojotogo.com/smc/t-v-c4.html
https://bojotogo.com/smc/t-v-c5.html
https://bojotogo.com/smc/t-v-d1.html
https://bojotogo.com/smc/t-v-d2.html
https://bojotogo.com/smc/t-v-d3.html
https://bojotogo.com/smc/t-v-d4.html
https://bojotogo.com/smc/t-v-d5.html
https://bojotogo.com/smc/h-v-a1.html
https://bojotogo.com/smc/h-v-a2.html
https://bojotogo.com/smc/h-v-a3.html
https://bojotogo.com/smc/h-v-a4.html
https://bojotogo.com/smc/h-v-a5.html
https://bojotogo.com/smc/h-v-a6.html
https://bojotogo.com/smc/h-v-a7.html
https://bojotogo.com/smc/h-v-a8.html
https://bojotogo.com/smc/h-v-a9.html
https://bojotogo.com/smc/h-v-b1.html
https://bojotogo.com/smc/h-v-b2.html
https://bojotogo.com/smc/h-v-b3.html
https://bojotogo.com/smc/h-v-b4.html
https://bojotogo.com/smc/h-v-b5.html
https://bojotogo.com/smc/h-v-b6.html
https://bojotogo.com/smc/m-v-a.html
https://bojotogo.com/smc/m-v-a1.html
https://bojotogo.com/smc/m-v-a10.html
https://bojotogo.com/smc/m-v-a11.html
https://bojotogo.com/smc/m-v-a12.html
https://bojotogo.com/smc/m-v-a13.html
https://bojotogo.com/smc/m-v-a14.html
https://bojotogo.com/smc/m-v-a15.html
https://bojotogo.com/smc/m-v-a16.html
https://bojotogo.com/smc/m-v-a17.html
https://bojotogo.com/smc/m-v-a2.html
https://bojotogo.com/smc/m-v-a3.html
https://bojotogo.com/smc/m-v-a4.html
https://bojotogo.com/smc/m-v-a5.html
https://bojotogo.com/smc/m-v-a6.html
https://bojotogo.com/smc/m-v-a7.html
https://bojotogo.com/smc/m-v-a8.html
https://bojotogo.com/smc/m-v-a9.html
https://www.seattleaudubon.org/rte/a-v-a1.html
https://www.seattleaudubon.org/rte/a-v-a10.html
https://www.seattleaudubon.org/rte/a-v-a2.html
https://www.seattleaudubon.org/rte/a-v-a3.html
https://www.seattleaudubon.org/rte/a-v-a4.html
https://www.seattleaudubon.org/rte/a-v-a5.html
https://www.seattleaudubon.org/rte/a-v-a6.html
https://www.seattleaudubon.org/rte/a-v-a7.html
https://www.seattleaudubon.org/rte/a-v-a8.html
https://www.seattleaudubon.org/rte/a-v-a9.html
https://www.seattleaudubon.org/rte/a-v-b1.html
https://www.seattleaudubon.org/rte/a-v-b2.html
https://www.seattleaudubon.org/rte/a-v-b3.html
https://www.seattleaudubon.org/rte/g-v-q1.html
https://www.seattleaudubon.org/rte/g-v-q2.html
https://www.seattleaudubon.org/rte/g-v-q3.html
https://www.seattleaudubon.org/rte/g-v-q4.html
https://www.seattleaudubon.org/rte/g-v-q5.html
https://www.seattleaudubon.org/rte/g-v-q6.html
https://www.seattleaudubon.org/rte/g-v-q7.html
https://www.seattleaudubon.org/rte/g-v-q8.html
https://www.seattleaudubon.org/rte/g-v-q9.html
https://www.seattleaudubon.org/rte/g-v-q10.html
https://www.seattleaudubon.org/rte/g-v-q11.html
https://www.seattleaudubon.org/rte/g-v-q12.html
https://www.seattleaudubon.org/rte/s-v-a1.html
https://www.seattleaudubon.org/rte/s-v-a2.html
https://www.seattleaudubon.org/rte/s-v-a3.html
https://www.seattleaudubon.org/rte/s-v-a4.html
https://www.seattleaudubon.org/rte/s-v-a5.html
https://www.seattleaudubon.org/rte/s-v-a6.html
https://www.seattleaudubon.org/rte/s-v-a7.html
https://www.seattleaudubon.org/rte/s-v-a8.html
https://www.seattleaudubon.org/rte/s-v-a9.html
https://www.seattleaudubon.org/rte/s-v-a10.html
https://www.seattleaudubon.org/rte/s-v-a11.html
https://www.seattleaudubon.org/rte/s-v-a12.html
https://www.seattleaudubon.org/rte/s-v-a13.html
https://www.seattleaudubon.org/rte/s-v-a14.html
https://www.seattleaudubon.org/rte/s-v-a15.html
https://www.seattleaudubon.org/rte/f-v-a1.html
https://www.seattleaudubon.org/rte/f-v-a2.html
https://www.seattleaudubon.org/rte/f-v-a3.html
https://www.seattleaudubon.org/rte/f-v-a4.html
https://www.seattleaudubon.org/rte/f-v-a5.html
https://www.seattleaudubon.org/rte/f-v-a6.html
https://www.seattleaudubon.org/rte/f-v-a7.html
https://www.seattleaudubon.org/rte/f-v-a8.html
https://www.seattleaudubon.org/rte/f-v-a9.html
https://www.seattleaudubon.org/rte/f-v-b1.html
https://www.seattleaudubon.org/rte/f-v-b2.html
https://www.seattleaudubon.org/rte/f-v-b3.html
https://www.seattleaudubon.org/rte/f-v-b4.html
https://www.seattleaudubon.org/rte/f-v-b5.html
https://www.seattleaudubon.org/rte/f-v-b6.html
https://www.seattleaudubon.org/rte/f-v-b7.html
https://www.seattleaudubon.org/rte/a-v-b4.html
https://www.seattleaudubon.org/rte/t-v-a1.html
https://www.seattleaudubon.org/rte/t-v-a2.html
https://www.seattleaudubon.org/rte/t-v-a3.html
https://www.seattleaudubon.org/rte/t-v-b1.html
https://www.seattleaudubon.org/rte/t-v-b2.html
https://www.seattleaudubon.org/rte/t-v-b3.html
https://www.seattleaudubon.org/rte/t-v-b4.html
https://www.seattleaudubon.org/rte/t-v-c1.html
https://www.seattleaudubon.org/rte/t-v-c2.html
https://www.seattleaudubon.org/rte/t-v-c3.html
https://www.seattleaudubon.org/rte/t-v-c4.html
https://www.seattleaudubon.org/rte/t-v-c5.html
https://www.seattleaudubon.org/rte/t-v-d1.html
https://www.seattleaudubon.org/rte/t-v-d2.html
https://www.seattleaudubon.org/rte/t-v-d3.html
https://www.seattleaudubon.org/rte/t-v-d4.html
https://www.seattleaudubon.org/rte/t-v-d5.html
https://www.seattleaudubon.org/rte/h-v-a1.html
https://www.seattleaudubon.org/rte/h-v-a2.html
https://www.seattleaudubon.org/rte/h-v-a3.html
https://www.seattleaudubon.org/rte/h-v-a4.html
https://www.seattleaudubon.org/rte/h-v-a5.html
https://www.seattleaudubon.org/rte/h-v-a6.html
https://www.seattleaudubon.org/rte/h-v-a7.html
https://www.seattleaudubon.org/rte/h-v-a8.html
https://www.seattleaudubon.org/rte/h-v-a9.html
https://www.seattleaudubon.org/rte/h-v-b1.html
https://www.seattleaudubon.org/rte/h-v-b2.html
https://www.seattleaudubon.org/rte/h-v-b3.html
https://www.seattleaudubon.org/rte/h-v-b4.html
https://www.seattleaudubon.org/rte/h-v-b5.html
https://www.seattleaudubon.org/rte/h-v-b6.html
https://www.seattleaudubon.org/rte/m-v-a.html
https://www.seattleaudubon.org/rte/m-v-a1.html
https://www.seattleaudubon.org/rte/m-v-a10.html
https://www.seattleaudubon.org/rte/m-v-a11.html
https://www.seattleaudubon.org/rte/m-v-a12.html
https://www.seattleaudubon.org/rte/m-v-a13.html
https://www.seattleaudubon.org/rte/m-v-a14.html
https://www.seattleaudubon.org/rte/m-v-a15.html
https://www.seattleaudubon.org/rte/m-v-a16.html
https://www.seattleaudubon.org/rte/m-v-a17.html
https://www.seattleaudubon.org/rte/m-v-a2.html
https://www.seattleaudubon.org/rte/m-v-a3.html
https://www.seattleaudubon.org/rte/m-v-a4.html
https://www.seattleaudubon.org/rte/m-v-a5.html
https://www.seattleaudubon.org/rte/m-v-a6.html
https://www.seattleaudubon.org/rte/m-v-a7.html
https://www.seattleaudubon.org/rte/m-v-a8.html
https://www.seattleaudubon.org/rte/m-v-a9.html

If you pay attention, the main purpose of the function is done in a single line (right after the second comment). The other lines are performing cleaning tasks that are not very clear.

In the above function, I used .rename method to rename the lng column to lon. In the original, dirty function, a new column was created and the old one was dropped which was unnecessary.

5. Don’t let it slip to the dermatologist who is treating your bite that you are going on a swimming trip to Lake Tahoe next week after she just explicitly told you not to put your bite in lake water.

If you are interested in boosting your career, earning more money, accumulating wisdom, or improving your life skill, developing a reading habit is a crucial task. You will learn so much from others.Making reading a habit can take time — aiming to absorb a lot of wisdom from all the books you read is even more difficult, but it pays a lifetime if you get the reading strategy right.First of all, the docstring does not give a good description of the function. If we spend some time reading the code, we will realize that its main purpose is to read a csv file from path argument and subset it using country argument and return top 25 most populated cities of that country.

A common mistake many beginners make is writing too long and complicated functions. It is always recommended to design functions to only perform one specific task. Small and precise functions are easy to test and debug with modern IDEs and will be flexible.

If you still think like that, try to write a script/program that actually works with at least 200 lines long, and then we will talk. In the meantime, consider this function:

When I first started learning Python, I also thought the books and courses I took made a very big deal of bugs in code. Because then, the code I wrote was not sophisticated enough to generate giant pain in the a** bugs or errors.

Active reading on the other hand happens through engagement, repetition, making notes and revisiting the most useful books. It’s how you transfer new knowledge from your working memory to your long-term understanding.

Reading is one of the best ways to learn what others have already figured out. “A reader lives a thousand lives before he dies, said Jojen. The man who never reads lives only one,” says George R.R. Martin

--

--