_is_url#

scikitplot.corpus._is_url(s)[source]#

Return True if s is a string that looks like an HTTP(S) URL.

Parameters:
sobject

Value to test.

Returns:
bool

True when s is a str matching ^https?:// (case-insensitive). False for pathlib.Path objects and non-string types.

Parameters:

s (object)

Return type:

bool