SoFunction
Updated on 2024-10-30

python method to read text with vertical line separator

Below:

data = pd.read_csv('',sep = '|',dtype = 'str')

The above code means:

1,Read the file under the working path.

2, the use of '|' split different columns

3, all columns are of type 'str'.

Above this python read vertical line separator text method is all I have shared with you, I hope to give you a reference, and I hope you support me more.