Created
May 27, 2018 09:56
-
-
Save MSWon/e366412a522997b97b921fbabf9e8cde to your computer and use it in GitHub Desktop.
Python code for reading .txt file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def read_data(filename): | |
with open(filename, 'r',encoding='utf-8') as f: | |
data = [line.split('\t') for line in f.read().splitlines()] | |
data = data[1:] # header 제외 # | |
return data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment