read text file using pandas in python code example
Example 1: read txt in pandas
data = pd.read_csv('output_list.txt', sep=" ", header=None)
data.columns = ["a", "b", "c", "etc."]
Example 2: pandas open text file
df = pd.read_csv('output_list.txt', sep=" ", header=None, names=["a", "b", "c"])
data = pd.read_csv('output_list.txt', sep=" ", header=None)
data.columns = ["a", "b", "c", "etc."]