The get_encoding function accepts both bytes and str( http url) this results in two http calls when the input is a http url.(One in get_encoding , other in read_csv)
TODO:
Check this so the content is fetched before and only bytes are passed to both the get_encoding and read_csv functions.
The get_encoding function accepts both bytes and str( http url) this results in two http calls when the input is a http url.(One in get_encoding , other in read_csv)
TODO: Check this so the content is fetched before and only bytes are passed to both the get_encoding and read_csv functions.
REF: https://github.com/factly/hunting/blob/13cb426f7b6829765a11ef1aa7e635e95af48671/app/utils/dataframes.py#L29