code stringlengths 3 6.57k |
|---|
float(count_rows[idx]) |
special_formats.append(is_special) |
json.dumps(variables) |
self.save() |
cleanSuburbName(text) |
unidecode.unidecode(text) |
upper() |
text.upper() |
re.sub(r'(\|) |
diagonales (slashs) |
re.sub(ur'[^0-9A-Z\s\(\) |
final_name.upper() |
re.sub(r'[\.\,\-]', ' ', final_name) |
re.sub(r' +', ' ', final_name) |
re.sub(r'\(\s?', r'(', final_name) |
re.sub(r'\s?\) |
re.sub(re_uhab, r'(U HAB) |
re.sub(r'\(\s?(FRACCIONAMIENTO) |
re.sub(ur'\(\s?(AMPLIACION|AMPLIACIÓN) |
re.sub(ur'^(COMITE|COMITÉ|COLONIA) |
normal_name (se hace un análisis aparte) |
re.compile(r'(\(?\d{2}) |
re.sub(re_cve, '', final_name) |
final_name.strip() |
re.sub(r' +', ' ', final_name) |
get_normal_name(text) |
cleanSuburbName(text) |
len(re.sub(r'[^\w]', '', normal_name) |
clean_text(text) |
unidecode.unidecode(text) |
final_text.strip() |
re.sub(r' +', ' ', final_text) |
re.sub(r'(\(|\¿|\¡) |
re.sub(r'\s?(\) |
re.sub(r'(\) |
final_text.strip() |
calculateNumber(text, column, has_special_format=None) |
re.sub(r'(B) |
re.sub(r'(O) |
con (100) |
y (1) |
re.sub(r'[\(\) |
re.sub(r'(s|S) |
re.sub(r'(/) |
bool(re.search(r'D.V', new_value) |
re.sub(r'[^0-9\,\.\-\%]', '', new_value) |
new_value.strip() |
comas (siempre a puntos) |
re.sub(r'(\d) |
re.sub(r'(\,) |
meros (montos) |
re.compile(r'^\d{1,7}(\.\d{2}) |
re.compile(r'^\-?\d{1,3}(\.\d{1,2}) |
re.compile(r'[4895%]$') |
re.compile(r'\d{2}$') |
re.sub(r'(\d) |
re.sub(r'\(\s?(.*) |
re.sub(r'\(\s?(.+) |
re.sub(r'\.(\d{3}) |
bool(re_compara.search(new_value) |
bool(re_format.search(new_value) |
errors.append(err) |
if (has_special_format and not is_ammount) |
re.sub(re_format, '', only_ints) |
float(only_ints) |
re.sub(re_format, '', only_ints) |
float(only_ints) |
if (is_ammount and 0 < float_value < 1000) |
errors.append(u"Número inválido en columna %s" % column["title"]) |
float(100) |
index(request) |
HttpResponse('TEST URL') |
Test_Spearman(unittest.TestCase) |
test_spearman(self) |
K. (2020, June) |
Science
(pp. 632-645) |
np.array([1, 2, 3, 4, 5]) |
np.array([1, 3, 2, 4, 5]) |
corrs.spearman(R, Q) |
self.assertEqual(test_result, real_result) |
Test_Weighted_Spearman(unittest.TestCase) |
test_weighted_spearman(self) |
K. (2020, June) |
Science
(pp. 632-645) |
np.array([1, 2, 3, 4, 5]) |
np.array([1, 3, 2, 4, 5]) |
corrs.weighted_spearman(R, Q) |
self.assertEqual(np.round(test_result, 4) |
Test_WS(unittest.TestCase) |
test_ws(self) |
K. (2020, June) |
Science
(pp. 632-645) |
np.array([1, 2, 3, 4, 5]) |
np.array([1, 3, 2, 4, 5]) |
corrs.WS_coeff(R, Q) |
self.assertEqual(np.round(test_result, 4) |
Test_Pearson(unittest.TestCase) |
test_pearson(self) |
K. (2020, June) |
Science
(pp. 632-645) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.