fastapi-csv
fastapi-csv copied to clipboard
How to use fastapi-csv to read delimitter other than ,
Dear Sir, How to use fastapi-csv to read delimitter other than , .
My file flat file is ~ separator
SO How to use fastapi-csv to create endpoints using ~ separator .
waiting for your suppot
Thanks
File: applications.py change line df = pd.read_csv(self.csv_path) to whatever separator you might need df = pd.read_csv(self.csv_path, sep='\t') In your case: df = pd.read_csv(self.csv_path, sep='~')
And thank you to the developer jrieke for taking the time to write this and make his efforts public.!
Thanks Jrieke/Fastapi-Csv
I will check and let you know
Thanks
On Wed, Mar 15, 2023 at 8:30 PM Leon @.***> wrote:
File: applications.py change line df = pd.read_csv(self.csv_path) to whatever separator you might need df = pd.read_csv(self.csv_path, sep='\t')
— Reply to this email directly, view it on GitHub https://github.com/jrieke/fastapi-csv/issues/4#issuecomment-1470164504, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGAGU5F77HWIQO42YJGO53W4HKPNANCNFSM6AAAAAASNIWJT4 . You are receiving this because you authored the thread.Message ID: @.***>
Hi Jrieke/Fastapi-Csv
I am getting issues while running fastapi-csv
ImportError: this version of pandas is incompatible with numpy < 1.20.3 your numpy version is 1.20.0. Please upgrade numpy to >= 1.20.3 to use this pandas version (env3.8) @.***:~/healthapi$
On Wed, Mar 15, 2023 at 8:52 PM Srikanth Pokkuluri @.***> wrote:
Thanks Jrieke/Fastapi-Csv
I will check and let you know
Thanks
On Wed, Mar 15, 2023 at 8:30 PM Leon @.***> wrote:
File: applications.py change line df = pd.read_csv(self.csv_path) to whatever separator you might need df = pd.read_csv(self.csv_path, sep='\t')
— Reply to this email directly, view it on GitHub https://github.com/jrieke/fastapi-csv/issues/4#issuecomment-1470164504, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGAGU5F77HWIQO42YJGO53W4HKPNANCNFSM6AAAAAASNIWJT4 . You are receiving this because you authored the thread.Message ID: @.***>