Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

text to pandas

df = pd.read_csv('output_list.txt', sep=" ", header=None)
# or
df = pd.read_fwf('output_list.txt')

You can use pandas.DataFrame.to_csv(), and setting both index and header to False:
 
PREVIOUS NEXT
Tagged: #text #pandas
ADD COMMENT
Topic
Name
5+7 =