factly / hunting

Hunting is data profiling exposed as REST API. It is built on top of Pandas Profiling & Polars.
4 stars 1 forks source link

Check get_encoding to accept only bytes #24

Open paul-tharun opened 1 year ago

paul-tharun commented 1 year ago

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