The six most important read_csv arguments in Pandas

Поделиться
HTML-код
  • Опубликовано: 1 июл 2023
  • Do you work with CSV files? Of course you do! It's by far the most common format. And the read_csv function supports dozens of arguments -- so many that it's often hard to know where to start reading the documentation.
    In this video, I show you the six arguments for read_csv that you're most likely to need. I then demonstrate them with real data files, in Jupyter. (You can download my notebook, plus the data files, from github.com/reuven/youTube-not... .)
  • НаукаНаука

Комментарии • 12

  • @gdvissch
    @gdvissch Год назад +4

    I used to read your articles in Linux Journal before reading the rest of the magazine. Glad to have found you back here, and with interesting content… subscribed!

    • @ReuvenLerner
      @ReuvenLerner  Год назад +1

      So delighted that you found me here! Thanks for the very kinds words; I really miss the LJ days.

    • @gdvissch
      @gdvissch Год назад +1

      I guess sometimes “The Algorithm” does good things too. I immediately recognised your name. The picture is different though (but not a lot 😜)

  • @munivoltarc
    @munivoltarc 10 месяцев назад +1

    I am seeing your python educational videos every video is amazingly simple and easy to learn to novice, thanks for your service to many across the world

    • @ReuvenLerner
      @ReuvenLerner  10 месяцев назад +1

      I'm delighted that you're enjoying the videos! Thanks for your kind words.

  • @Scooterboy_and_freinds109
    @Scooterboy_and_freinds109 10 месяцев назад +1

    Fantastic Demo, To the point with good simple examples

  • @The.WorldVentures
    @The.WorldVentures 3 месяца назад +1

    Thank you so much, you have saved my a***

    • @ReuvenLerner
      @ReuvenLerner  3 месяца назад

      Fantastic; I'm delighted to hear it!

  • @John-pb7gb
    @John-pb7gb Месяц назад +1

    How can we a csv file if we have an uneven number of columns? Let's say the header row has Name, Phone number, and Address separated by comma, but only some of the data in the Address column has more commas(ex: St.Vincent road, Dallas, TX) something like this. How should I read the file

    • @ReuvenLerner
      @ReuvenLerner  23 дня назад

      CSV files need to have the same number of columns in each row. You can sometimes get away with null values, if there are commas next to each other, but I don't believe that you can ever have variable-length lows.