fastapi-csv icon indicating copy to clipboard operation
fastapi-csv copied to clipboard

How to use fastapi-csv to read delimitter other than ,

Open pvssrikanth opened this issue 3 years ago • 3 comments

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

pvssrikanth avatar Nov 28 '22 12:11 pvssrikanth

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.!

letconex avatar Mar 15 '23 14:03 letconex

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: @.***>

pvssrikanth avatar Mar 15 '23 15:03 pvssrikanth

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: @.***>

pvssrikanth avatar Jun 28 '23 08:06 pvssrikanth