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

Pungtajibon
5 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://bojotogo.com/smx/h-v-o1.html
https://bojotogo.com/smx/h-v-o2.html
https://bojotogo.com/smx/h-v-o3.html
https://bojotogo.com/smx/h-v-o4.html
https://bojotogo.com/smx/h-v-o5.html
https://bojotogo.com/smx/h-v-o6.html
https://www.seattleaudubon.org/cvs/h-v-o1.html
https://www.seattleaudubon.org/cvs/h-v-o2.html
https://www.seattleaudubon.org/cvs/h-v-o3.html
https://www.seattleaudubon.org/cvs/h-v-o4.html
https://www.seattleaudubon.org/cvs/h-v-o5.html
https://www.seattleaudubon.org/cvs/h-v-o6.html
https://bojotogo.com/smx/g-v-e1.html
https://bojotogo.com/smx/g-v-e2.html
https://bojotogo.com/smx/g-v-e3.html
https://bojotogo.com/smx/g-v-e4.html
https://bojotogo.com/smx/g-v-e5.html
https://bojotogo.com/smx/g-v-e6.html
https://bojotogo.com/smx/g-v-e7.html
https://bojotogo.com/smx/g-v-e8.html
https://bojotogo.com/smx/g-v-e9.html
https://bojotogo.com/smx/g-v-q1.html
https://bojotogo.com/smx/g-v-q2.html
https://bojotogo.com/smx/g-v-q3.html
https://bojotogo.com/smx/g-v-w1.html
https://bojotogo.com/smx/g-v-w2.html
https://bojotogo.com/smx/g-v-w3.html
https://bojotogo.com/smx/g-v-w4.html
https://bojotogo.com/smx/g-v-w5.html
https://bojotogo.com/smx/g-v-w6.html
https://bojotogo.com/smx/g-v-w7.html
https://bojotogo.com/smx/g-v-w8.html
https://www.seattleaudubon.org/cvs/g-v-e1.html
https://www.seattleaudubon.org/cvs/g-v-e2.html
https://www.seattleaudubon.org/cvs/g-v-e3.html
https://www.seattleaudubon.org/cvs/g-v-e4.html
https://www.seattleaudubon.org/cvs/g-v-e5.html
https://www.seattleaudubon.org/cvs/g-v-e6.html
https://www.seattleaudubon.org/cvs/g-v-e7.html
https://www.seattleaudubon.org/cvs/g-v-e8.html
https://www.seattleaudubon.org/cvs/g-v-e9.html
https://www.seattleaudubon.org/cvs/g-v-q1.html
https://www.seattleaudubon.org/cvs/g-v-q2.html
https://www.seattleaudubon.org/cvs/g-v-q3.html
https://www.seattleaudubon.org/cvs/g-v-w1.html
https://www.seattleaudubon.org/cvs/g-v-w2.html
https://www.seattleaudubon.org/cvs/g-v-w3.html
https://www.seattleaudubon.org/cvs/g-v-w4.html
https://www.seattleaudubon.org/cvs/g-v-w5.html
https://www.seattleaudubon.org/cvs/g-v-w6.html
https://www.seattleaudubon.org/cvs/g-v-w7.html
https://www.seattleaudubon.org/cvs/g-v-w8.html
https://bojotogo.com/smx/z-v-f1.html
https://bojotogo.com/smx/z-v-f2.html
https://bojotogo.com/smx/z-v-f3.html
https://bojotogo.com/smx/z-v-f4.html
https://bojotogo.com/smx/z-v-h1.html
https://bojotogo.com/smx/z-v-h2.html
https://bojotogo.com/smx/z-v-h3.html
https://bojotogo.com/smx/z-v-h4.html
https://bojotogo.com/smx/z-v-n1.html
https://bojotogo.com/smx/z-v-n2.html
https://bojotogo.com/smx/z-v-n3.html
https://bojotogo.com/smx/z-v-n4.html
https://bojotogo.com/smx/b-v-c1.html
https://bojotogo.com/smx/b-v-c2.html
https://bojotogo.com/smx/b-v-c3.html
https://bojotogo.com/smx/b-v-c4.html
https://bojotogo.com/smx/b-v-d1.html
https://bojotogo.com/smx/b-v-d2.html
https://bojotogo.com/smx/b-v-d3.html
https://bojotogo.com/smx/b-v-d4.html
https://bojotogo.com/smx/b-v-e1.html
https://bojotogo.com/smx/b-v-e2.html
https://bojotogo.com/smx/b-v-e3.html
https://bojotogo.com/smx/b-v-e4.html
https://bojotogo.com/smx/b-v-f1.html
https://bojotogo.com/smx/b-v-f2.html
https://bojotogo.com/smx/b-v-f3.html
https://bojotogo.com/smx/b-v-g1.html
https://bojotogo.com/smx/b-v-g2.html
https://bojotogo.com/smx/b-v-g3.html
https://www.seattleaudubon.org/cvs/b-v-c1.html
https://www.seattleaudubon.org/cvs/b-v-c2.html
https://www.seattleaudubon.org/cvs/b-v-c3.html
https://www.seattleaudubon.org/cvs/b-v-c4.html
https://www.seattleaudubon.org/cvs/b-v-d1.html
https://www.seattleaudubon.org/cvs/b-v-d2.html
https://www.seattleaudubon.org/cvs/b-v-d3.html
https://www.seattleaudubon.org/cvs/b-v-d4.html
https://www.seattleaudubon.org/cvs/b-v-e1.html
https://www.seattleaudubon.org/cvs/b-v-e2.html
https://www.seattleaudubon.org/cvs/b-v-e3.html
https://www.seattleaudubon.org/cvs/b-v-e4.html
https://www.seattleaudubon.org/cvs/b-v-f1.html
https://www.seattleaudubon.org/cvs/b-v-f2.html
https://www.seattleaudubon.org/cvs/b-v-f3.html
https://www.seattleaudubon.org/cvs/b-v-g1.html
https://www.seattleaudubon.org/cvs/b-v-g2.html
https://www.seattleaudubon.org/cvs/b-v-g3.html
https://bojotogo.com/smx/d-v-e1.html
https://bojotogo.com/smx/d-v-e2.html
https://bojotogo.com/smx/d-v-e3.html
https://bojotogo.com/smx/d-v-e4.html
https://bojotogo.com/smx/d-v-e5.html
https://www.seattleaudubon.org/cvs/d-v-e1.html
https://www.seattleaudubon.org/cvs/d-v-e2.html
https://www.seattleaudubon.org/cvs/d-v-e3.html
https://www.seattleaudubon.org/cvs/d-v-e4.html
https://www.seattleaudubon.org/cvs/d-v-e5.html
https://bojotogo.com/smc/age-v-bri-now01.html
https://bojotogo.com/smc/age-v-bri-now02.html
https://bojotogo.com/smc/age-v-bri-now03.html
https://bojotogo.com/smc/age-v-bri-now04.html
https://bojotogo.com/smc/rel-v-sev-viv-now01.html
https://bojotogo.com/smc/rel-v-sev-viv-now02.html
https://bojotogo.com/smc/rel-v-sev-viv-now03.html
https://bojotogo.com/smc/rel-v-sev-viv-now04.html
https://bojotogo.com/smc/rel-v-sev-viv-now05.html
https://bojotogo.com/smc/rel-v-sev-viv-now06.html
https://bojotogo.com/smc/ren-v-len-now01.html
https://bojotogo.com/smc/ren-v-len-now02.html
https://bojotogo.com/smc/ren-v-len-now03.html
https://bojotogo.com/smc/ren-v-len-now04.html
https://www.seattleaudubon.org/rug/age-v-bri-now01.html
https://www.seattleaudubon.org/rug/age-v-bri-now02.html
https://www.seattleaudubon.org/rug/age-v-bri-now03.html
https://www.seattleaudubon.org/rug/age-v-bri-now04.html
https://www.seattleaudubon.org/rug/rel-v-sev-viv-now01.html
https://www.seattleaudubon.org/rug/rel-v-sev-viv-now02.html
https://www.seattleaudubon.org/rug/rel-v-sev-viv-now03.html
https://www.seattleaudubon.org/rug/rel-v-sev-viv-now04.html
https://www.seattleaudubon.org/rug/rel-v-sev-viv-now05.html
https://www.seattleaudubon.org/rug/rel-v-sev-viv-now06.html
https://www.seattleaudubon.org/rug/ren-v-len-now01.html
https://www.seattleaudubon.org/rug/ren-v-len-now02.html
https://www.seattleaudubon.org/rug/ren-v-len-now03.html
https://www.seattleaudubon.org/rug/ren-v-len-now04.html
https://bojotogo.com/smx/b-v-h1.html
https://bojotogo.com/smx/b-v-h2.html
https://www.seattleaudubon.org/cvs/b-v-h1.html
https://www.seattleaudubon.org/cvs/b-v-h2.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.

--

--