I am trying to insert some data from compressed .gz
(gzip) files using Python. These files are in .tsv
format. I know how to read gzip compressed files, but I cannot resolve the problem how to insert it not converting to csv format.
I have already tried to read compressed file using below code.
gzip_file = gzip.open(os.path.join(path, filename), 'rb')
file_cont = gzip_file.read()