check_file cannot take file buffer as input
AGS_to_dataframe and some other functions allow option of either file path as string, or a file-like object (String IO buffer) to be passed.
check_file only allows file path as string, not the stringIO option.
@asitha-sena (or others) - is there a reason for this?
Reason I ask is I've just been playing around with Streamlit - with some success. A file uploaded in a Streamlit app is read into a buffer (bytesIO - but I eventually figured out how to convert to stringIO). I can pass the buffer to AGS_to_Dataframe ok (it worked) but I can't do that for check_file. I would have to create a workaround which would likely involve double handling of the file.
It would be handy if check_file was the same as the other functions. If there is a good reason why it is this way, then fair enough. But if it can be implemented without pain, then that would be cool.
I'm guessing this may well have usage well beyond Streamlit.