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... .) Наука
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!
So delighted that you found me here! Thanks for the very kinds words; I really miss the LJ days.
I guess sometimes “The Algorithm” does good things too. I immediately recognised your name. The picture is different though (but not a lot 😜)
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
I'm delighted that you're enjoying the videos! Thanks for your kind words.
Fantastic Demo, To the point with good simple examples
Glad to hear; thanks!
Thank you so much, you have saved my a***
Fantastic; I'm delighted to hear it!
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
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.