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

kajuthapa
6 min readDec 6, 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.seattleaudubon.org/vme/a-v-a1.html
https://www.seattleaudubon.org/vme/a-v-a2.html
https://www.seattleaudubon.org/vme/a-v-a3.html
https://www.seattleaudubon.org/vme/a-v-a4.html
https://www.seattleaudubon.org/vme/ma-v-fr-tv1.html
https://www.seattleaudubon.org/vme/ma-v-fr-tv2.html
https://www.seattleaudubon.org/vme/ma-v-val-it1.html
https://ricfacility.byu.edu/bew/a-v-a1.html
https://ricfacility.byu.edu/bew/a-v-a2.html
https://ricfacility.byu.edu/bew/a-v-a3.html
https://ricfacility.byu.edu/bew/a-v-a4.html
https://ricfacility.byu.edu/bew/ma-v-fr-tv1.html
https://ricfacility.byu.edu/bew/ma-v-fr-tv2.html
https://ricfacility.byu.edu/bew/ma-v-val-it1.html
https://ricfacility.byu.edu/bew/West-Brom-v-Crystal-epl1.html
https://ricfacility.byu.edu/bew/West-Brom-v-Crystal-epl2.html
https://ricfacility.byu.edu/bew/West-Brom-v-Crystal-epl3.html
https://ricfacility.byu.edu/bew/West-Brom-v-Crystal-epl4.html
https://ricfacility.byu.edu/bew/aus-v-ind-now01.html
https://ricfacility.byu.edu/bew/aus-v-ind-now02.html
https://ricfacility.byu.edu/bew/aus-v-ind-now03.html
https://ricfacility.byu.edu/bew/aus-v-ind-now04.html
https://ricfacility.byu.edu/bew/aus-v-ind-now05.html
https://ricfacility.byu.edu/bew/aus-v-ind-now06.html
https://ricfacility.byu.edu/bew/aus-v-ind-now07.html
https://ricfacility.byu.edu/bew/aus-v-ind-now08.html
https://ricfacility.byu.edu/bew/aus-v-ind-now09.html
https://ricfacility.byu.edu/bew/f-v-a1.html
https://ricfacility.byu.edu/bew/f-v-a2.html
https://www.seattleaudubon.org/vme/aus-v-ind-now01.html
https://www.seattleaudubon.org/vme/aus-v-ind-now02.html
https://www.seattleaudubon.org/vme/aus-v-ind-now03.html
https://www.seattleaudubon.org/vme/aus-v-ind-now04.html
https://www.seattleaudubon.org/vme/aus-v-ind-now05.html
https://www.seattleaudubon.org/vme/aus-v-ind-now06.html
https://www.seattleaudubon.org/vme/aus-v-ind-now07.html
https://www.seattleaudubon.org/vme/aus-v-ind-now08.html
https://www.seattleaudubon.org/vme/aus-v-ind-now09.html
https://www.seattleaudubon.org/vme/f-v-a1.html
https://www.seattleaudubon.org/vme/f-v-a2.html
https://ricfacility.byu.edu/bew/h-v-a1.html
https://ricfacility.byu.edu/bew/h-v-a2.html
https://ricfacility.byu.edu/bew/h-v-a3.html
https://ricfacility.byu.edu/bew/h-v-a4.html
https://ricfacility.byu.edu/bew/h-v-a5.html
https://ricfacility.byu.edu/bew/h-v-a6.html
https://ricfacility.byu.edu/bew/h-v-a7.html
https://ricfacility.byu.edu/bew/h-v-a8.html
https://www.seattleaudubon.org/vme/h-v-a1.html
https://www.seattleaudubon.org/vme/h-v-a2.html
https://www.seattleaudubon.org/vme/h-v-a3.html
https://www.seattleaudubon.org/vme/h-v-a4.html
https://www.seattleaudubon.org/vme/h-v-a5.html
https://www.seattleaudubon.org/vme/h-v-a6.html
https://www.seattleaudubon.org/vme/h-v-a7.html
https://www.seattleaudubon.org/vme/h-v-a8.html
https://ricfacility.byu.edu/bew/Feyenoord-v-Herac-kjkn1.html
https://ricfacility.byu.edu/bew/Feyenoord-v-Herac-kjkn2.html
https://ricfacility.byu.edu/bew/Feyenoord-v-Herac-kjkn3.html
https://www.seattleaudubon.org/vme/West-Brom-v-Crystal-epl1.html
https://www.seattleaudubon.org/vme/West-Brom-v-Crystal-epl2.html
https://www.seattleaudubon.org/vme/West-Brom-v-Crystal-epl3.html
https://www.seattleaudubon.org/vme/West-Brom-v-Crystal-epl4.html
https://ricfacility.byu.edu/bew/f-v-a3.html
https://ricfacility.byu.edu/bew/f-v-a4.html
https://ricfacility.byu.edu/bew/f-v-a5.html
https://ricfacility.byu.edu/bew/f-v-a6.html
https://ricfacility.byu.edu/bew/f-v-a7.html
https://ricfacility.byu.edu/bew/f-v-a8.html
https://www.seattleaudubon.org/vme/f-v-a3.html
https://www.seattleaudubon.org/vme/f-v-a4.html
https://www.seattleaudubon.org/vme/f-v-a5.html
https://www.seattleaudubon.org/vme/f-v-a6.html
https://www.seattleaudubon.org/vme/f-v-a7.html
https://www.seattleaudubon.org/vme/f-v-a8.html
https://www.seattleaudubon.org/vme/ma-v-ma-jp1.html
https://www.seattleaudubon.org/vme/ma-v-ma-jp2.html
https://www.seattleaudubon.org/vme/ma-v-ma-jp3.html
https://www.seattleaudubon.org/vme/ma-v-ma-jp4.html
https://www.seattleaudubon.org/vme/ma-v-ma-jp5.html
https://www.seattleaudubon.org/vme/ma-v-ma-jp6.html
https://www.seattleaudubon.org/vme/Tel-v-Sup-be1.html
https://www.seattleaudubon.org/vme/Tel-v-Sup-be2.html
https://www.seattleaudubon.org/vme/Tel-v-Sup-be3.html
https://www.seattleaudubon.org/vme/Tel-v-Sup-be4.html
https://www.seattleaudubon.org/vme/Tel-v-Sup-be5.html
https://www.seattleaudubon.org/vme/Tel-v-Sup-be6.html
https://www.seattleaudubon.org/vme/Tel-v-Sup-be7.html
https://www.seattleaudubon.org/vme/Tel-v-Sup-be8.html
https://www.seattleaudubon.org/vme/Tele-v-Sup-be1.html
https://www.seattleaudubon.org/vme/Tele-v-Sup-be2.html
https://www.seattleaudubon.org/vme/Tele-v-Sup-be3.html
https://www.seattleaudubon.org/vme/Tele-v-Sup-be4.html
https://www.seattleaudubon.org/vme/Mara-v-Valen-nl1.html
https://www.seattleaudubon.org/vme/Mara-v-Valen-nl2.html
https://www.seattleaudubon.org/vme/Mara-v-Valen-nl3.html
https://www.seattleaudubon.org/vme/Mara-v-Valen-nl4.html
https://www.seattleaudubon.org/vme/Mara-v-Valen-nl5.html
https://ricfacility.byu.edu/bew/ma-v-ma-jp1.html
https://ricfacility.byu.edu/bew/ma-v-ma-jp2.html
https://ricfacility.byu.edu/bew/ma-v-ma-jp3.html
https://ricfacility.byu.edu/bew/ma-v-ma-jp4.html
https://ricfacility.byu.edu/bew/ma-v-ma-jp5.html
https://ricfacility.byu.edu/bew/ma-v-ma-jp6.html
https://ricfacility.byu.edu/bew/Tel-v-Sup-be1.html
https://ricfacility.byu.edu/bew/Tel-v-Sup-be2.html
https://ricfacility.byu.edu/bew/Tel-v-Sup-be3.html
https://ricfacility.byu.edu/bew/Tel-v-Sup-be4.html
https://ricfacility.byu.edu/bew/Tel-v-Sup-be5.html
https://ricfacility.byu.edu/bew/Tel-v-Sup-be6.html
https://ricfacility.byu.edu/bew/Tel-v-Sup-be7.html
https://ricfacility.byu.edu/bew/Tel-v-Sup-be8.html
https://ricfacility.byu.edu/bew/Tele-v-Sup-be1.html
https://ricfacility.byu.edu/bew/Tele-v-Sup-be2.html
https://ricfacility.byu.edu/bew/Tele-v-Sup-be3.html
https://ricfacility.byu.edu/bew/Tele-v-Sup-be4.html
https://ricfacility.byu.edu/bew/Mara-v-Valen-nl1.html
https://ricfacility.byu.edu/bew/Mara-v-Valen-nl2.html
https://ricfacility.byu.edu/bew/Mara-v-Valen-nl3.html
https://ricfacility.byu.edu/bew/Mara-v-Valen-nl4.html
https://ricfacility.byu.edu/bew/Mara-v-Valen-nl5.html
https://ricfacility.byu.edu/bew/t-v-a1.html
https://ricfacility.byu.edu/bew/t-v-a2.html
https://ricfacility.byu.edu/bew/t-v-a3.html
https://ricfacility.byu.edu/bew/t-v-a4.html
https://ricfacility.byu.edu/bew/t-v-b1.html
https://ricfacility.byu.edu/bew/t-v-b2.html
https://ricfacility.byu.edu/bew/t-v-b3.html
https://ricfacility.byu.edu/bew/t-v-c1.html
https://ricfacility.byu.edu/bew/t-v-c2.html
https://ricfacility.byu.edu/bew/t-v-c3.html
https://www.seattleaudubon.org/vme/t-v-a1.html
https://www.seattleaudubon.org/vme/t-v-a2.html
https://www.seattleaudubon.org/vme/t-v-a3.html
https://www.seattleaudubon.org/vme/t-v-a4.html
https://www.seattleaudubon.org/vme/t-v-b1.html
https://www.seattleaudubon.org/vme/t-v-b2.html
https://www.seattleaudubon.org/vme/t-v-b3.html
https://www.seattleaudubon.org/vme/t-v-c1.html
https://www.seattleaudubon.org/vme/t-v-c2.html
https://www.seattleaudubon.org/vme/t-v-c3.html
https://ricfacility.byu.edu/bew/n-v-a1.html
https://ricfacility.byu.edu/bew/n-v-a2.html
https://ricfacility.byu.edu/bew/n-v-a3.html
https://ricfacility.byu.edu/bew/n-v-a4.html
https://ricfacility.byu.edu/bew/n-v-b1.html
https://ricfacility.byu.edu/bew/n-v-b2.html
https://ricfacility.byu.edu/bew/n-v-b3.html
https://ricfacility.byu.edu/bew/n-v-b4.html
https://ricfacility.byu.edu/bew/n-v-b5.html
https://ricfacility.byu.edu/bew/Valencia-v-Maratona-in-sa1.html
https://ricfacility.byu.edu/bew/Valencia-v-Maratona-in-sa2.html
https://ricfacility.byu.edu/bew/Valencia-v-Maratona-in-sa3.html
https://ricfacility.byu.edu/bew/Valencia-v-Maratona-in-sa4.html
https://ricfacility.byu.edu/bew/Valencia-v-Maratona-liv-sa1.html
https://ricfacility.byu.edu/bew/Valencia-v-Maratona-liv-sa2.html
https://ricfacility.byu.edu/bew/Valencia-v-Maratona-liv-sa3.html
https://www.seattleaudubon.org/vme/n-v-a1.html
https://www.seattleaudubon.org/vme/n-v-a2.html
https://www.seattleaudubon.org/vme/n-v-a3.html
https://www.seattleaudubon.org/vme/n-v-a4.html
https://www.seattleaudubon.org/vme/n-v-b1.html
https://www.seattleaudubon.org/vme/n-v-b2.html
https://www.seattleaudubon.org/vme/n-v-b3.html
https://www.seattleaudubon.org/vme/n-v-b4.html
https://www.seattleaudubon.org/vme/n-v-b5.html
https://www.seattleaudubon.org/vme/Valencia-v-Maratona-in-sa1.html
https://www.seattleaudubon.org/vme/Valencia-v-Maratona-in-sa2.html
https://www.seattleaudubon.org/vme/Valencia-v-Maratona-in-sa3.html
https://www.seattleaudubon.org/vme/Valencia-v-Maratona-in-sa4.html
https://www.seattleaudubon.org/vme/Valencia-v-Maratona-liv-sa1.html
https://www.seattleaudubon.org/vme/Valencia-v-Maratona-liv-sa2.html
https://www.seattleaudubon.org/vme/Valencia-v-Maratona-liv-sa3.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

--

--