I have a file "my_file.csv.gz" which I've opened using:
file = gzip.open("my_file.csv.gz", mode = "r")
How can I get the column names from this result? Do I have to do file.read()?
When I log out what file is using logger.info(f"file: {file}")
I get
<gzip _io.TextIOWrapper encoding='UTF-8' 0x7fc31958faf0>
and I'm not really sure what to do with this result. Thanks!