I have a CSV file with delimiter as ';'.
The below code only handles the CSV with ';' as the delimiter.
dataset = pd.read_csv('/Data/formatted1.csv',header=0, delimiter = ';', encoding = 'unicode_escape')
But, if the CSV has the delimiter as ',' or 'tab' or '\n' then it should handle it dynamically. Is there a way to handle all of them dynamically?
I have tried the below code but it doesn't work.
df = pd.read_csv('file.csv', delim_whitespace=True)