Python pandas.compat.isidentifier() Examples
The following are 5
code examples of pandas.compat.isidentifier().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pandas.compat
, or try the search function
.
Example #1
Source File: test_api.py From recruit with Apache License 2.0 | 5 votes |
def test_index_tab_completion(self, index): # dir contains string-like values of the Index. s = pd.Series(index=index) dir_s = dir(s) for i, x in enumerate(s.index.unique(level=0)): if i < 100: assert (not isinstance(x, string_types) or not isidentifier(x) or x in dir_s) else: assert x not in dir_s
Example #2
Source File: test_api.py From vnpy_crypto with MIT License | 5 votes |
def test_index_tab_completion(self, index): # dir contains string-like values of the Index. s = pd.Series(index=index) dir_s = dir(s) for i, x in enumerate(s.index.unique(level=0)): if i < 100: assert (not isinstance(x, string_types) or not isidentifier(x) or x in dir_s) else: assert x not in dir_s
Example #3
Source File: generic.py From Computable with MIT License | 5 votes |
def _local_dir(self): """ add the string-like attributes from the info_axis """ return [c for c in self._info_axis if isinstance(c, string_types) and isidentifier(c)]
Example #4
Source File: test_api.py From predictive-maintenance-using-machine-learning with Apache License 2.0 | 5 votes |
def test_index_tab_completion(self, index): # dir contains string-like values of the Index. s = pd.Series(index=index) dir_s = dir(s) for i, x in enumerate(s.index.unique(level=0)): if i < 100: assert (not isinstance(x, string_types) or not isidentifier(x) or x in dir_s) else: assert x not in dir_s
Example #5
Source File: test_api.py From twitter-stock-recommendation with MIT License | 5 votes |
def test_index_tab_completion(self, index): # dir contains string-like values of the Index. s = pd.Series(index=index) dir_s = dir(s) for i, x in enumerate(s.index.unique(level=0)): if i < 100: assert (not isinstance(x, string_types) or not isidentifier(x) or x in dir_s) else: assert x not in dir_s