Yeah, let's move on with the txt file. So it's
a supermarkets separated by commas. So
it's a data structure separated by
commas. For that, so for
[No audio]
txt files separated by commas,
[No audio]
again, you use read_csv.
[No audio]
just like that df4, and here is the
DataFrame. So this supermarkets.csv
actually, some say it's a comma
separated file, but to be more
accurate, you'd say a character separated
values. So c is for character. And you
know, there might be different
characters there. In this case, when you
have commas as separators, you don't
have to pass any separator parameter
here. But when you have other values
as separators, you will have to pass that, and that
is the next scenario. So df5 pandas.read_csv,
so we're talking about
supermarkets_semi-colons,
[No audio]
supermarkets_semi-colons.txt.
And yeah, let me try this as it is now. So if I
execute that, Python will not be able to
recognize the semicolon there. The
reason for that is because
[No audio]
separator parameter has a value of comma by
default, so you want to change that to
your separator, which is a semicolon in
this case, execute. We got an error
there, unexpected keyword argument
separator. So it seems like
read_csv doesn't have a separated
separator parameter. In that case, you
want to help, ask for help, and so, and
yeah, here is the parameters that you want
to pass. So it's actually a sep and you
can see that the default value of sep is
a comma. So close that and go here,
change that to sep, execute, and here is
the DataFrame. Great. What's left to
do? Yeah, we consumed everything, and that's
about reading local files.
[No audio]