No video

The six most important read_csv arguments in Pandas

  Рет қаралды 2,989

Python and Pandas with Reuven Lerner

Python and Pandas with Reuven Lerner

Жыл бұрын

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/reu... .)

Пікірлер: 12
@gdvissch
@gdvissch Жыл бұрын
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 Жыл бұрын
So delighted that you found me here! Thanks for the very kinds words; I really miss the LJ days.
@gdvissch
@gdvissch Жыл бұрын
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 11 ай бұрын
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 11 ай бұрын
I'm delighted that you're enjoying the videos! Thanks for your kind words.
@Scooterboy_and_others109
@Scooterboy_and_others109 Жыл бұрын
Fantastic Demo, To the point with good simple examples
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Glad to hear; thanks!
@John-pb7gb
@John-pb7gb 2 ай бұрын
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 2 ай бұрын
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.
@The.WorldVentures
@The.WorldVentures 4 ай бұрын
Thank you so much, you have saved my a***
@ReuvenLerner
@ReuvenLerner 4 ай бұрын
Fantastic; I'm delighted to hear it!
Flipping Data with Pandas: Stack & Unstack
8:17
Python and Pandas with Reuven Lerner
Рет қаралды 2,6 М.
Boolean indexing in Pandas made simple
8:23
Python and Pandas with Reuven Lerner
Рет қаралды 1,8 М.
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 36 МЛН
Understanding "with" and Python's context managers
14:00
Python and Pandas with Reuven Lerner
Рет қаралды 901
Method chaining in Pandas
18:17
Python and Pandas with Reuven Lerner
Рет қаралды 1,9 М.
Using axe-core with A11y Agent - AI powered web accessibility fixes
3:52
Comparing values in Pandas with "diff" and "pct_change"
6:46
Python and Pandas with Reuven Lerner
Рет қаралды 697
*args and **kwargs - what are they, and how are they different?
10:42
Python and Pandas with Reuven Lerner
Рет қаралды 1,3 М.
Selecting rows in Pandas using .loc and lambda
9:04
Python and Pandas with Reuven Lerner
Рет қаралды 996
The new case_when method in Pandas 2.2.0
10:07
Python and Pandas with Reuven Lerner
Рет қаралды 1,3 М.
Using | in Pandas? Consider the "isin" method instead
6:01
Python and Pandas with Reuven Lerner
Рет қаралды 921
AMD slayed the dragon - AMD Ryzen 9 9900X & 9950X
8:39
ShortCircuit
Рет қаралды 342 М.