df = pandas.read_csv('file_name')

만약 구분자(seperator)가 다를 경우에 옵션을 추가하면 된다

df = pandas.read_csv('file_name', sep=':')

 

https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html

 

pandas.read_csv — pandas 1.3.4 documentation

Delimiter to use. If sep is None, the C engine cannot automatically detect the separator, but the Python parsing engine can, meaning the latter will be used and automatically detect the separator by Python’s builtin sniffer tool, csv.Sniffer. In addition

pandas.pydata.org

 

 

+ Recent posts