Python reading csv file by read_csv


Hello data science community, how can i read a csv file without using separators?
but without using separator
I tried but it gives me error unicode

Asked By: Zakb



i think this will work:

import csv

with open('/Users/bandarhelal/Downloads/electronic-card-transactions-september-2019-csv-tables.csv', mode='r') as testfile:
    arr = testfile.readlines()
    for line in arr:
        print(line.replace(',', ' '))
Answered By: BandarHelal
import panadas as pd

data_frame = pd.read_csv(full file path)
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.