When using the configuration for automatic separator detection to read csv files (pd.read_csv(file_path, sep=None)), pandas tries to infer the delimiter (or separat
pd.read_csv(file_path, sep=None)
I think you can do this without having to import csv:
csv
reader = pd.read_csv(file_path, sep = None, iterator = True) inferred_sep = reader._engine.data.dialect.delimiter
EDIT:
Forgot the iterator = True argument.
iterator = True