Don't use dot notation in Pandas!

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

ความคิดเห็น • 6

  • @jftsang
    @jftsang 3 วันที่ผ่านมา +5

    Reuven, you should do a video on memory management in Pandas with Jupyter and how Jupyter's `Out` mapping maintains a reference to previous possibly intermediate results. A trap I've fallen into countless times.

    • @ReuvenLerner
      @ReuvenLerner  3 วันที่ผ่านมา +2

      Great idea! I've added it to my TH-cam "to do" list. People forget that global variables stick around forever, as do any values referred to by those globals. So the fact that In and Out are globals, and that they refer to potentially large values, can indeed be a problem...

  • @xzenor
    @xzenor 4 วันที่ผ่านมา +2

    Touch typing?

    • @ReuvenLerner
      @ReuvenLerner  4 วันที่ผ่านมา +3

      "Touch typing" means that you can type without looking at the keyboard. Being able to type without looking allows me to write very quickly, meaning that the difference between df.a and df['a'] is almost zero. Touch typing is one of the best and most useful skills I ever learned, and it's all thanks to my parents insisting that I do it when I was in high school.

  • @CultureofSpeech
    @CultureofSpeech วันที่ผ่านมา

    Please Help me learn python script by coding application for detecting fake news

  • @pietraderdetective8953
    @pietraderdetective8953 2 วันที่ผ่านมา

    ahh yes, the dot notation vs bracket notation. I always use bracket even though it's longer to write.
    Request for a video on FireDucks please. we can speedup Pandas to be faster than Polars without any code change.