import pandas as pd
word = pd.read_table ("test.txt", encoding =" utf-8", names = ["query"])
what does the "query"" in the names here mean?
header: int, list of ints, default "infer"
Row number (s) to use as the column names, and the start of the data. Defaults to 0 if no names passed, otherwise None. Explicitly pass header=0 to be able to replace existing names. The header can be a list of integers that specify row locations for a multi-index on the columns E.g. [0,1,3]. Intervening rows that are not specified will be skipped (e.g. 2 in this example are skipped). Note that this parameter ignores commented lines and empty lines if skip_blank_lines=True, so header=0 denotes the first line of data rather than the first line of the file.
in addition, I saw the headers here on the official website a little confused. The number in the "Row number (s) to use as the column names" line is regarded as the name of the column. How do you understand this?