MCPcopy
hub / github.com/pandas-dev/pandas / is_url

Function is_url

pandas/io/common.py:155–170  ·  view source on GitHub ↗

Check to see if a URL has a valid protocol. Parameters ---------- url : str or unicode Returns ------- isurl : bool If `url` has a valid protocol return True otherwise False.

(url: object)

Source from the content-addressed store, hash-verified

153
154
155def is_url(url: object) -> bool:
156 """
157 Check to see if a URL has a valid protocol.
158
159 Parameters
160 ----------
161 url : str or unicode
162
163 Returns
164 -------
165 isurl : bool
166 If `url` has a valid protocol return True otherwise False.
167 """
168 if not isinstance(url, str):
169 return False
170 return parse_url(url).scheme in _VALID_URLS
171
172
173@overload

Callers 6

_iterparse_nodesMethod · 0.90
_readFunction · 0.90
_build_docMethod · 0.90
_get_path_or_handleFunction · 0.90
_write_cellMethod · 0.90
_get_filepath_or_bufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected