I am trying to pass to pass delimiter from the config file and my config file is something look like this i am providing the inside content of my( .config format) file and from this (.config format )file i am reading this all argument such as path,delimiter,type of file etc
path|\t|csv
path2|;|csv
and i am trying to fetch to data which is double quoted something look like
"Bhu" "xyz" "rax"
But when i am creating the data from using read_csv
Import pandas as pd
df=pd.read_csv(<from config file path>,sep=<here i am putting /t from config file>)
But when my dataframe is created data frame is look like ''' "Bhu""xyz""rax" ''' But as much i know the double quotes must be remove from dataframe when i try to create the dataframe using read_csv() function but this is not happening in this case .
And it working as per my expectation when i pass separator /t as hard coding in my script like
df=pd.read_csv(<path from config file>,sep='/t')
Then its create dataframe like my expectation
Bhu xyz rax
Without any double quotes in my datafarme .but as per my understanding read_csv remove any double quotes from dataframe when it exist in source data .
So can any one help my why this is happening when i fetch delimiter from config file .i want data without double-quote in my dataframe and delimiter must be pass from config file no any hard coding in my script.
path|/t|csv|doesn't mean anything to me.