DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
read txt in pandas
data
=
pd
.
read_csv
(
'output_list.txt'
,
sep
=
" "
,
header
=
None
)
data
.
columns
=
[
"a"
,
"b"
,
"c"
,
"etc."
]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#read
#txt
#pandas
ADD COMMENT
Topic
COMMENT
Name
7+6 =
Submit