I have read a file in google colab from my local machine.
How to use "delimeter = ';' "in the following command ?
import io
df = pd.read_csv(io.StringIO(uploaded['train.csv'].decode('utf-8')))
I have read a file in google colab from my local machine.
How to use "delimeter = ';' "in the following command ?
import io
df = pd.read_csv(io.StringIO(uploaded['train.csv'].decode('utf-8')))
As previously mentioned, you can use the 'sep' or 'delimiter' argument to define which delimiter you want to use. Since you are reading it in from your local machine df = pd.read_csv('example.csv', delimiter=";")
should do the trick just fine. Here is an example of how I was able to read in a similar type of file: https://gist.github.com/jwmartinez1/d773988bfd789f14431704c006858542.
you can use delimiter
or sep
sep : str
delimiter : str