Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'print-statement' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'parameter-unpacking' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'unpacking-in-except' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'old-raise-syntax' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'backtick' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'import-star-module-level' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'apply-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'basestring-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'buffer-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'cmp-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'coerce-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'execfile-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'file-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'long-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'raw_input-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'reduce-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'standarderror-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'unicode-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'xrange-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'coerce-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'delslice-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'getslice-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'setslice-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'no-absolute-import' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'old-division' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-iter-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-view-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'next-method-called' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'metaclass-assignment' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'indexing-exception' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'raising-string' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'reload-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'oct-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'hex-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'nonzero-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'cmp-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'input-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'round-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'intern-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'unichr-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'map-builtin-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'zip-builtin-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'range-builtin-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'filter-builtin-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'using-cmp-argument' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'div-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'idiv-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'rdiv-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'exception-message-attribute' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'invalid-str-codec' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'sys-max-int' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'bad-python3-import' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-string-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-str-translate-call' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-itertools-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-types-field' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'next-method-defined' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-items-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-keys-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-values-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-operator-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-urllib-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'xreadlines-attribute' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-sys-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'exception-escape' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'comprehension-escape' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'long-suffix' |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'old-ne-operator' |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'old-octal-literal' |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'non-ascii-bytes-literal' |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'eq-without-hash' |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "geoModificationGermany" doesn't conform to snake_case naming style |
28 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
29 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
98 |
27 |
convention |
invalid-name |
C0103 |
insert_names_of_states |
Argument name "df" doesn't conform to snake_case naming style |
138 |
4 |
refactor |
no-else-return |
R1705 |
get_county_ids |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
141 |
15 |
refactor |
unnecessary-comprehension |
R1721 |
get_county_ids |
Unnecessary use of a comprehension, use list(unique_geo_entities) instead. |
174 |
4 |
refactor |
no-else-return |
R1705 |
get_county_names_and_ids |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
191 |
8 |
convention |
invalid-name |
C0103 |
insert_names_of_counties |
Argument name "df" doesn't conform to snake_case naming style |
229 |
8 |
refactor |
no-else-return |
R1705 |
check_for_all_counties |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
241 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (136/120) |
266 |
4 |
refactor |
no-else-return |
R1705 |
get_countyid_to_stateid_map |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
287 |
8 |
warning |
redefined-builtin |
W0622 |
get_stateid_to_countyids_map |
Redefining built-in 'id' |
287 |
8 |
convention |
invalid-name |
C0103 |
get_stateid_to_countyids_map |
Variable name "id" doesn't conform to snake_case naming style |
317 |
4 |
refactor |
no-else-return |
R1705 |
get_governing_regions |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
317 |
7 |
convention |
singleton-comparison |
C0121 |
get_governing_regions |
Comparison 'strict == False' should be 'strict is False' if checking for the singleton value False, or 'not strict' if testing for falsiness |
340 |
81 |
convention |
invalid-name |
C0103 |
get_official_county_table |
Variable name "p" doesn't conform to snake_case naming style |
381 |
15 |
refactor |
use-dict-literal |
R1735 |
get_nuts3_county_id_map |
Consider using {} instead of dict() |
407 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
407 |
8 |
warning |
using-constant-test |
W0125 |
create_intermediateregion_level |
Using a conditional statement with a constant value |
420 |
16 |
refactor |
unnecessary-comprehension |
R1721 |
create_intermediateregion_level |
Unnecessary use of a comprehension, use list(range(len(intermed_regions))) instead. |
428 |
8 |
convention |
consider-using-enumerate |
C0200 |
create_intermediateregion_level |
Consider using enumerate instead of iterating with range and len |
433 |
8 |
warning |
unused-variable |
W0612 |
create_intermediateregion_level |
Unused variable 'intermedregionids_to_countyids' |
583 |
0 |
warning |
dangerous-default-value |
W0102 |
merge_df_counties |
Dangerous default value [] as argument |
583 |
0 |
refactor |
too-many-arguments |
R0913 |
merge_df_counties |
Too many arguments (6/5) |
584 |
8 |
convention |
invalid-name |
C0103 |
merge_df_counties |
Argument name "df" doesn't conform to snake_case naming style |
622 |
11 |
convention |
unneeded-not |
C0113 |
merge_df_counties |
Consider changing "not dd.EngEng['idCounty'] in columns" to "dd.EngEng['idCounty'] not in columns" |
648 |
0 |
warning |
dangerous-default-value |
W0102 |
merge_df_counties_all |
Dangerous default value [] as argument |
649 |
8 |
convention |
invalid-name |
C0103 |
merge_df_counties_all |
Argument name "df" doesn't conform to snake_case naming style |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getCaseData" doesn't conform to snake_case naming style |
36 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'matplotlib.pyplot' |
36 |
0 |
warning |
unused-import |
W0611 |
|
Unused matplotlib.pyplot imported as plt |
37 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
38 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
50 |
27 |
convention |
invalid-name |
C0103 |
check_for_completeness |
Argument name "df" doesn't conform to snake_case naming style |
63 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (130/120) |
64 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (133/120) |
69 |
4 |
refactor |
no-else-return |
R1705 |
check_for_completeness |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
104 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/120) |
116 |
8 |
convention |
invalid-name |
C0103 |
fetch_case_data |
Variable name "df" doesn't conform to snake_case naming style |
119 |
11 |
warning |
broad-except |
W0703 |
fetch_case_data |
Catching too general exception Exception |
122 |
8 |
warning |
unnecessary-pass |
W0107 |
fetch_case_data |
Unnecessary pass statement |
138 |
12 |
convention |
invalid-name |
C0103 |
fetch_case_data |
Variable name "df" doesn't conform to snake_case naming style |
142 |
8 |
warning |
bare-except |
W0702 |
fetch_case_data |
No exception type(s) specified |
152 |
16 |
convention |
invalid-name |
C0103 |
fetch_case_data |
Variable name "df" doesn't conform to snake_case naming style |
157 |
12 |
warning |
bare-except |
W0702 |
fetch_case_data |
No exception type(s) specified |
170 |
0 |
refactor |
too-many-arguments |
R0913 |
preprocess_case_data |
Too many arguments (6/5) |
188 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
197 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (176/120) |
198 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (171/120) |
205 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "df" doesn't conform to snake_case naming style |
211 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "AnzahlFall" doesn't conform to snake_case naming style |
212 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "AnzahlGenesen" doesn't conform to snake_case naming style |
213 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "AnzahlTodesfall" doesn't conform to snake_case naming style |
245 |
16 |
warning |
raise-missing-from |
W0707 |
preprocess_case_data |
Consider explicitly re-raising using 'except Exception as exc' and 'raise gd.DataError("Time data can't be transformed to intended format") from exc' |
250 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "dateToUse" doesn't conform to snake_case naming style |
265 |
12 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "df" doesn't conform to snake_case naming style |
276 |
20 |
convention |
invalid-name |
C0103 |
write_case_data |
Argument name "df" doesn't conform to snake_case naming style |
276 |
0 |
refactor |
too-many-arguments |
R0913 |
write_case_data |
Too many arguments (11/5) |
276 |
0 |
refactor |
too-many-locals |
R0914 |
write_case_data |
Too many local variables (26/15) |
276 |
0 |
refactor |
too-many-branches |
R0912 |
write_case_data |
Too many branches (14/12) |
276 |
0 |
refactor |
inconsistent-return-statements |
R1710 |
write_case_data |
Either all return statements in a function should return an expression, or none of them should. |
299 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
310 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (135/120) |
313 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (135/120) |
314 |
190 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
314 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (190/120) |
315 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (237/120) |
316 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (189/120) |
317 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (186/120) |
318 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/120) |
323 |
7 |
refactor |
consider-using-in |
R1714 |
write_case_data |
Consider merging these comparisons with 'in' by using 'files in ('All', ['All'])'. Use a set instead if elements are hashable. |
328 |
7 |
refactor |
consider-using-in |
R1714 |
write_case_data |
Consider merging these comparisons with 'in' by using 'files in ('Plot', ['Plot'])'. Use a set instead if elements are hashable. |
337 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "Altersgruppe" doesn't conform to snake_case naming style |
338 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "Geschlecht" doesn't conform to snake_case naming style |
339 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "AnzahlFall" doesn't conform to snake_case naming style |
340 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "AnzahlGenesen" doesn't conform to snake_case naming style |
341 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "AnzahlTodesfall" doesn't conform to snake_case naming style |
342 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "IdBundesland" doesn't conform to snake_case naming style |
343 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "IdLandkreis" doesn't conform to snake_case naming style |
344 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "dateToUse" doesn't conform to snake_case naming style |
398 |
23 |
refactor |
use-dict-literal |
R1735 |
write_case_data |
Consider using {} instead of dict() |
402 |
27 |
convention |
consider-iterating-dictionary |
C0201 |
write_case_data |
Consider iterating the dictionary directly instead of calling .keys() |
406 |
12 |
refactor |
simplifiable-if-statement |
R1703 |
write_case_data |
The if statement can be replaced with 'var = bool(test)' |
447 |
0 |
refactor |
too-many-arguments |
R0913 |
get_case_data |
Too many arguments (10/5) |
447 |
0 |
refactor |
too-many-locals |
R0914 |
get_case_data |
Too many local variables (17/15) |
447 |
0 |
refactor |
inconsistent-return-statements |
R1710 |
get_case_data |
Either all return statements in a function should return an expression, or none of them should. |
477 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
489 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
494 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (163/120) |
495 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (151/120) |
496 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (134/120) |
498 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (129/120) |
499 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (185/120) |
501 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (136/120) |
502 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (185/120) |
503 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (181/120) |
504 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/120) |
505 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getCommuterMobility" doesn't conform to snake_case naming style |
27 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
28 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
49 |
4 |
refactor |
no-else-return |
R1705 |
verify_sorted |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
56 |
0 |
refactor |
too-many-locals |
R0914 |
assign_geographical_entities |
Too many local variables (16/15) |
65 |
22 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
70 |
11 |
convention |
singleton-comparison |
C0121 |
assign_geographical_entities |
Comparison 'verify_sorted(countykey_list) == False' should be 'verify_sorted(countykey_list) is False' if checking for the singleton value False, or 'not verify_sorted(countykey_list)' if testing for falsiness |
76 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (184/120) |
83 |
4 |
convention |
consider-using-enumerate |
C0200 |
assign_geographical_entities |
Consider using enumerate instead of iterating with range and len |
109 |
4 |
convention |
consider-using-enumerate |
C0200 |
assign_geographical_entities |
Consider using enumerate instead of iterating with range and len |
119 |
4 |
convention |
consider-using-enumerate |
C0200 |
assign_geographical_entities |
Consider using enumerate instead of iterating with range and len |
136 |
0 |
refactor |
too-many-locals |
R0914 |
get_commuter_data |
Too many local variables (58/15) |
136 |
0 |
refactor |
too-many-branches |
R0912 |
get_commuter_data |
Too many branches (40/12) |
136 |
0 |
refactor |
too-many-statements |
R0915 |
get_commuter_data |
Too many statements (138/50) |
148 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (147/120) |
149 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (151/120) |
150 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (134/120) |
157 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
161 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
194 |
4 |
convention |
consider-using-enumerate |
C0200 |
get_commuter_data |
Consider using enumerate instead of iterating with range and len |
214 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (142/120) |
243 |
41 |
convention |
invalid-name |
C0103 |
get_commuter_data |
Variable name "p" doesn't conform to snake_case naming style |
244 |
8 |
convention |
consider-using-enumerate |
C0200 |
get_commuter_data |
Consider using enumerate instead of iterating with range and len |
244 |
8 |
refactor |
too-many-nested-blocks |
R1702 |
get_commuter_data |
Too many nested blocks (7/5) |
244 |
8 |
refactor |
too-many-nested-blocks |
R1702 |
get_commuter_data |
Too many nested blocks (7/5) |
244 |
8 |
refactor |
too-many-nested-blocks |
R1702 |
get_commuter_data |
Too many nested blocks (7/5) |
244 |
8 |
refactor |
too-many-nested-blocks |
R1702 |
get_commuter_data |
Too many nested blocks (7/5) |
244 |
8 |
refactor |
too-many-nested-blocks |
R1702 |
get_commuter_data |
Too many nested blocks (8/5) |
244 |
8 |
refactor |
too-many-nested-blocks |
R1702 |
get_commuter_data |
Too many nested blocks (8/5) |
254 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/120) |
257 |
20 |
convention |
consider-using-enumerate |
C0200 |
get_commuter_data |
Consider using enumerate instead of iterating with range and len |
349 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (132/120) |
363 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (132/120) |
385 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
387 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
387 |
30 |
refactor |
too-many-boolean-expressions |
R0916 |
get_commuter_data |
Too many boolean expressions in if statement (8/5) |
450 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (124/120) |
505 |
27 |
convention |
invalid-name |
C0103 |
commuter_sanity_checks |
Argument name "df" doesn't conform to snake_case naming style |
508 |
14 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
520 |
0 |
refactor |
too-many-arguments |
R0913 |
get_neighbors_mobility |
Too many arguments (7/5) |
548 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
585 |
0 |
refactor |
too-many-arguments |
R0913 |
get_neighbors_mobility_all |
Too many arguments (6/5) |
614 |
8 |
warning |
redefined-builtin |
W0622 |
get_neighbors_mobility_all |
Redefining built-in 'id' |
614 |
8 |
convention |
invalid-name |
C0103 |
get_neighbors_mobility_all |
Variable name "id" doesn't conform to snake_case naming style |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getDataIntoPandasDataFrame" doesn't conform to snake_case naming style |
40 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import warnings" should be placed before "import requests" |
41 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'matplotlib' |
42 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from io import BytesIO" should be placed before "import requests" |
43 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from zipfile import ZipFile" should be placed before "import requests" |
44 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from enum import Enum" should be placed before "import requests" |
47 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
53 |
0 |
convention |
empty-docstring |
C0112 |
VerbosityLevel |
Empty class docstring |
55 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Off" doesn't conform to UPPER_CASE naming style |
56 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Critical" doesn't conform to UPPER_CASE naming style |
57 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Error" doesn't conform to UPPER_CASE naming style |
58 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Warning" doesn't conform to UPPER_CASE naming style |
59 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Info" doesn't conform to UPPER_CASE naming style |
60 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Debug" doesn't conform to UPPER_CASE naming style |
61 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Trace" doesn't conform to UPPER_CASE naming style |
64 |
0 |
refactor |
too-few-public-methods |
R0903 |
Conf |
Too few public methods (0/2) |
79 |
32 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
109 |
30 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
112 |
26 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
114 |
31 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
116 |
24 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
117 |
26 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
118 |
30 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
122 |
76 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
124 |
77 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
126 |
66 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
128 |
73 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
130 |
62 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
132 |
58 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
135 |
70 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
143 |
11 |
convention |
singleton-comparison |
C0121 |
Conf.__init__ |
Comparison 'Conf.show_progr == True' should be 'Conf.show_progr is True' if checking for the singleton value True, or 'Conf.show_progr' if testing for truthiness |
152 |
27 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
153 |
19 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
160 |
25 |
warning |
unused-argument |
W0613 |
user_choice |
Unused argument 'default' |
163 |
19 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
169 |
8 |
refactor |
no-else-return |
R1705 |
user_choice |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
216 |
12 |
warning |
raise-missing-from |
W0707 |
download_file |
Consider explicitly re-raising using 'except OSError as exc' and 'raise FileNotFoundError('Error: URL ' + url + ' could not be opened.') from exc' |
257 |
31 |
convention |
invalid-name |
C0103 |
extract_zip |
Variable name "zipObj" doesn't conform to snake_case naming style |
260 |
8 |
convention |
consider-using-enumerate |
C0200 |
extract_zip |
Consider using enumerate instead of iterating with range and len |
264 |
16 |
warning |
bare-except |
W0702 |
extract_zip |
No exception type(s) specified |
271 |
0 |
warning |
dangerous-default-value |
W0102 |
get_file |
Dangerous default value {} as argument |
271 |
0 |
refactor |
too-many-locals |
R0914 |
get_file |
Too many local variables (19/15) |
271 |
0 |
refactor |
too-many-branches |
R0912 |
get_file |
Too many branches (14/12) |
276 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/120) |
281 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (153/120) |
282 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (132/120) |
302 |
12 |
convention |
invalid-name |
C0103 |
get_file |
Variable name "df" doesn't conform to snake_case naming style |
308 |
16 |
convention |
invalid-name |
C0103 |
get_file |
Variable name "df" doesn't conform to snake_case naming style |
313 |
16 |
warning |
raise-missing-from |
W0707 |
get_file |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError(error_message) from exc' |
316 |
80 |
convention |
invalid-name |
C0103 |
get_file |
Variable name "p" doesn't conform to snake_case naming style |
335 |
16 |
convention |
invalid-name |
C0103 |
get_file |
Variable name "df" doesn't conform to snake_case naming style |
337 |
12 |
warning |
raise-missing-from |
W0707 |
get_file |
Consider explicitly re-raising using 'except OSError as exc' and 'raise FileNotFoundError('Error: URL ' + url + ' could not be opened.') from exc' |
343 |
11 |
refactor |
consider-merging-isinstance |
R1701 |
get_file |
Consider merging these isinstance calls to isinstance(df, (dict, list)) |
346 |
20 |
warning |
raise-missing-from |
W0707 |
get_file |
Consider explicitly re-raising using 'except AttributeError as exc' and 'raise DataError('Error: Dataframe is empty.') from exc' |
348 |
12 |
warning |
raise-missing-from |
W0707 |
get_file |
Consider explicitly re-raising using 'except AttributeError as exc' and 'raise DataError('Could not catch type of df: ' + str(type(df))) from exc' |
352 |
0 |
refactor |
too-many-branches |
R0912 |
cli |
Too many branches (20/12) |
352 |
0 |
refactor |
too-many-statements |
R0915 |
cli |
Too many statements (52/50) |
395 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (154/120) |
398 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (138/120) |
400 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (131/120) |
401 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (129/120) |
402 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (173/120) |
407 |
8 |
warning |
raise-missing-from |
W0707 |
cli |
Consider explicitly re-raising using 'except KeyError as exc' and 'raise ValueError('Wrong key or cli_dict.') from exc' |
459 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/120) |
573 |
20 |
convention |
invalid-name |
C0103 |
write_dataframe |
Argument name "df" doesn't conform to snake_case naming style |
573 |
0 |
warning |
dangerous-default-value |
W0102 |
write_dataframe |
Dangerous default value {} as argument |
596 |
4 |
convention |
invalid-name |
C0103 |
write_dataframe |
Variable name "outForm" doesn't conform to snake_case naming style |
603 |
8 |
convention |
invalid-name |
C0103 |
write_dataframe |
Variable name "outFormEnd" doesn't conform to snake_case naming style |
604 |
8 |
convention |
invalid-name |
C0103 |
write_dataframe |
Variable name "outFormSpec" doesn't conform to snake_case naming style |
606 |
8 |
warning |
raise-missing-from |
W0707 |
write_dataframe |
Consider explicitly re-raising using 'except KeyError as exc' and 'raise ValueError('Error: The file format: ' + file_type + ' does not exist. Use json, json_timeasstring, hdf5, csv or txt.') from exc' |
631 |
4 |
warning |
unnecessary-pass |
W0107 |
DataError |
Unnecessary pass statement |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1524/1000) |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getNPIData" doesn't conform to snake_case naming style |
24 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from datetime import date, datetime, timedelta" should be placed before "from memilio.epidata import getPopulationData as gpd" |
25 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import time" should be placed before "from memilio.epidata import getPopulationData as gpd" |
26 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import os" should be placed before "from memilio.epidata import getPopulationData as gpd" |
27 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import copy" should be placed before "from memilio.epidata import getPopulationData as gpd" |
28 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
28 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "import pandas as pd" should be placed before "from memilio.epidata import getPopulationData as gpd" |
29 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
29 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "import numpy as np" should be placed before "from memilio.epidata import getPopulationData as gpd" |
30 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import warnings" should be placed before "import pandas as pd" |
31 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'matplotlib' |
31 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "import matplotlib as mpl" should be placed before "from memilio.epidata import getPopulationData as gpd" |
32 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'matplotlib.pyplot' |
32 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "import matplotlib.pyplot as plt" should be placed before "from memilio.epidata import getPopulationData as gpd" |
40 |
49 |
convention |
invalid-name |
C0103 |
validate |
Argument name "countyID" doesn't conform to snake_case naming style |
40 |
59 |
convention |
invalid-name |
C0103 |
validate |
Argument name "npiCode" doesn't conform to snake_case naming style |
40 |
0 |
refactor |
too-many-arguments |
R0913 |
validate |
Too many arguments (10/5) |
40 |
0 |
refactor |
too-many-locals |
R0914 |
validate |
Too many local variables (22/15) |
58 |
19 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
59 |
27 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
64 |
8 |
convention |
invalid-name |
C0103 |
validate |
Variable name "npiCodes" doesn't conform to snake_case naming style |
67 |
8 |
convention |
invalid-name |
C0103 |
validate |
Variable name "npiCodes" doesn't conform to snake_case naming style |
68 |
8 |
refactor |
redefined-argument-from-local |
R1704 |
validate |
Redefining argument with the local name 'npiCode' |
69 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/120) |
125 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
126 |
15 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
136 |
0 |
refactor |
too-many-locals |
R0914 |
read_files |
Too many local variables (20/15) |
136 |
0 |
refactor |
too-many-branches |
R0912 |
read_files |
Too many branches (21/12) |
136 |
0 |
refactor |
too-many-statements |
R0915 |
read_files |
Too many statements (59/50) |
146 |
22 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
151 |
4 |
refactor |
too-many-nested-blocks |
R1702 |
read_files |
Too many nested blocks (6/5) |
201 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (133/120) |
222 |
12 |
warning |
raise-missing-from |
W0707 |
read_files |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError from exc' |
243 |
12 |
warning |
raise-missing-from |
W0707 |
read_files |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError from exc' |
262 |
8 |
warning |
raise-missing-from |
W0707 |
read_files |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError from exc' |
272 |
8 |
warning |
raise-missing-from |
W0707 |
read_files |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError('File ' + fname + ' not found.') from exc' |
370 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (134/120) |
381 |
0 |
refactor |
too-many-branches |
R0912 |
drop_codes_and_categories |
Too many branches (14/12) |
441 |
8 |
convention |
consider-using-enumerate |
C0200 |
drop_codes_and_categories |
Consider using enumerate instead of iterating with range and len |
464 |
23 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
465 |
24 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
466 |
36 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
470 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (137/120) |
479 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'not' keyword |
481 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'not' keyword |
483 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'not' keyword |
497 |
0 |
refactor |
too-many-arguments |
R0913 |
get_npi_data |
Too many arguments (8/5) |
497 |
0 |
refactor |
too-many-locals |
R0914 |
get_npi_data |
Too many local variables (122/15) |
497 |
0 |
refactor |
too-many-branches |
R0912 |
get_npi_data |
Too many branches (96/12) |
497 |
0 |
refactor |
too-many-statements |
R0915 |
get_npi_data |
Too many statements (308/50) |
550 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
585 |
8 |
convention |
singleton-comparison |
C0121 |
get_npi_data |
Comparison 'df_npis_old.columns.str.contains('d2') == True' should be 'df_npis_old.columns.str.contains('d2') is True' if checking for the singleton value True, or 'bool(df_npis_old.columns.str.contains('d2'))' if testing for truthiness |
638 |
12 |
convention |
singleton-comparison |
C0121 |
get_npi_data |
Comparison '(df_npis_combinations_pre == 'x').any() == True' should be '(df_npis_combinations_pre == 'x').any() is True' if checking for the singleton value True, or 'bool((df_npis_combinations_pre == 'x').any())' if testing for truthiness |
640 |
45 |
refactor |
unnecessary-comprehension |
R1721 |
get_npi_data |
Unnecessary use of a comprehension, use list(columns_used) instead. |
644 |
50 |
refactor |
unnecessary-comprehension |
R1721 |
get_npi_data |
Unnecessary use of a comprehension, use list(range(0, len(columns_used))) instead. |
682 |
8 |
convention |
consider-using-enumerate |
C0200 |
get_npi_data |
Consider using enumerate instead of iterating with range and len |
687 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (145/120) |
709 |
8 |
convention |
consider-using-enumerate |
C0200 |
get_npi_data |
Consider using enumerate instead of iterating with range and len |
716 |
16 |
refactor |
unnecessary-comprehension |
R1721 |
get_npi_data |
Unnecessary use of a comprehension, use list(npi_codes_prior_desc[npi_codes_prior.isin(codes_local)].values) instead. |
720 |
15 |
convention |
singleton-comparison |
C0121 |
get_npi_data |
Comparison 'write_file == False' should be 'write_file is False' if checking for the singleton value False, or 'not write_file' if testing for falsiness |
756 |
8 |
convention |
consider-using-enumerate |
C0200 |
get_npi_data |
Consider using enumerate instead of iterating with range and len |
759 |
11 |
convention |
unneeded-not |
C0113 |
get_npi_data |
Consider changing "not errors == [0, 1, 2, 3, 4, 5]" to "errors != [0, 1, 2, 3, 4, 5]" |
797 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
805 |
35 |
refactor |
use-dict-literal |
R1735 |
get_npi_data |
Consider using {} instead of dict() |
816 |
25 |
convention |
consider-iterating-dictionary |
C0201 |
get_npi_data |
Consider iterating the dictionary directly instead of calling .keys() |
828 |
26 |
refactor |
use-dict-literal |
R1735 |
get_npi_data |
Consider using {} instead of dict() |
848 |
19 |
convention |
unneeded-not |
C0113 |
get_npi_data |
Consider changing "not (threshold, '') in incidence_thresholds" to "(threshold, '') not in incidence_thresholds" |
851 |
19 |
convention |
unneeded-not |
C0113 |
get_npi_data |
Consider changing "not (threshold, '_' + code.split('_')[2]) in incidence_thresholds" to "(threshold, '_' + code.split('_')[2]) not in incidence_thresholds" |
986 |
8 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "countyID" doesn't conform to snake_case naming style |
986 |
4 |
refactor |
too-many-nested-blocks |
R1702 |
get_npi_data |
Too many nested blocks (7/5) |
1041 |
19 |
refactor |
use-a-generator |
R1729 |
get_npi_data |
Use a generator instead 'all(npis[dd.EngEng['npiCode']][i * inc_codes] in npi_code_test for npi_code_test in df_local_old.iloc[inc_codes * i:inc_codes * (i + 1), npi_start_col - 1].to_list())' |
1050 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
1296 |
12 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "countyID" doesn't conform to snake_case naming style |
1297 |
16 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "npiCode" doesn't conform to snake_case naming style |
1301 |
20 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "a" doesn't conform to snake_case naming style |
1301 |
23 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "b" doesn't conform to snake_case naming style |
1301 |
26 |
warning |
unused-variable |
W0612 |
get_npi_data |
Unused variable 'oldf' |
1301 |
32 |
warning |
unused-variable |
W0612 |
get_npi_data |
Unused variable 'newf' |
1306 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
1328 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1329 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1330 |
31 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1339 |
16 |
convention |
singleton-comparison |
C0121 |
count_code_multiplicities |
Comparison 'df_local.columns.str.startswith('d2') == True' should be 'df_local.columns.str.startswith('d2') is True' if checking for the singleton value True, or 'bool(df_local.columns.str.startswith('d2'))' if testing for truthiness |
1347 |
12 |
convention |
consider-using-enumerate |
C0200 |
count_code_multiplicities |
Consider using enumerate instead of iterating with range and len |
1362 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (161/120) |
1377 |
12 |
convention |
consider-using-enumerate |
C0200 |
count_code_multiplicities |
Consider using enumerate instead of iterating with range and len |
1391 |
27 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1392 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1393 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1407 |
0 |
refactor |
too-many-statements |
R0915 |
plot_interaction_matrix |
Too many statements (54/50) |
1414 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1415 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1426 |
8 |
warning |
raise-missing-from |
W0707 |
plot_interaction_matrix |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError('File ' + filename + ' not found.') from exc' |
1441 |
8 |
convention |
invalid-name |
C0103 |
plot_interaction_matrix |
Variable name "df" doesn't conform to snake_case naming style |
1458 |
20 |
refactor |
unnecessary-comprehension |
R1721 |
plot_interaction_matrix |
Unnecessary use of a comprehension, use list(range(len(df.columns) - 1)) instead. |
1494 |
69 |
convention |
consider-using-f-string |
C0209 |
plot_interaction_matrix |
Formatting a regular string which could be a f-string |
1500 |
20 |
refactor |
unnecessary-comprehension |
R1721 |
plot_interaction_matrix |
Unnecessary use of a comprehension, use list(range(len(df.columns) - 1)) instead. |
1509 |
69 |
convention |
consider-using-f-string |
C0209 |
plot_interaction_matrix |
Formatting a regular string which could be a f-string |
1518 |
4 |
convention |
invalid-name |
C0103 |
main |
Variable name "df" doesn't conform to snake_case naming style |
1518 |
4 |
warning |
unused-variable |
W0612 |
main |
Unused variable 'df' |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getTestingData" doesn't conform to snake_case naming style |
24 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
53 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (144/120) |
56 |
17 |
error |
no-member |
E1101 |
download_testing_data |
Instance of 'list' has no 'iloc' member |
62 |
4 |
convention |
invalid-name |
C0103 |
download_testing_data |
Variable name "r" doesn't conform to snake_case naming style |
62 |
8 |
warning |
missing-timeout |
W3101 |
download_testing_data |
Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely |
65 |
34 |
convention |
invalid-name |
C0103 |
download_testing_data |
Variable name "fh" doesn't conform to snake_case naming style |
66 |
8 |
convention |
invalid-name |
C0103 |
download_testing_data |
Variable name "df" doesn't conform to snake_case naming style |
82 |
19 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
114 |
0 |
refactor |
too-many-arguments |
R0913 |
get_testing_data |
Too many arguments (7/5) |
114 |
0 |
refactor |
too-many-locals |
R0914 |
get_testing_data |
Too many local variables (26/15) |
114 |
0 |
refactor |
too-many-statements |
R0915 |
get_testing_data |
Too many statements (70/50) |
152 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (131/120) |
157 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (136/120) |
161 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
187 |
12 |
warning |
raise-missing-from |
W0707 |
get_testing_data |
Consider explicitly re-raising using 'except (ValueError, FileNotFoundError) as exc' and 'raise FileNotFoundError('Error: The file: ' + county_file_in + ' does not exist. Call program without -r flag to get it.') from exc' |
196 |
12 |
warning |
raise-missing-from |
W0707 |
get_testing_data |
Consider explicitly re-raising using 'except (ValueError, FileNotFoundError) as exc' and 'raise FileNotFoundError('Error: The file: ' + state_file_in + ' does not exist. Call program without -r flag to get it.') from exc' |
215 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'rename' member |
216 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'rename' member |
219 |
8 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
220 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
221 |
8 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
222 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
225 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
226 |
16 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
227 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
228 |
16 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
230 |
12 |
warning |
raise-missing-from |
W0707 |
get_testing_data |
Consider explicitly re-raising using 'except Exception as exc' and 'raise gd.DataError("Time data can't be transformed to intended format") from exc' |
234 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'drop' member |
241 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'drop' member |
244 |
28 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'State' member |
245 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'reset_index' member |
248 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'rename' member |
250 |
8 |
convention |
invalid-name |
C0103 |
get_testing_data |
Variable name "stateName" doesn't conform to snake_case naming style |
250 |
19 |
convention |
invalid-name |
C0103 |
get_testing_data |
Variable name "stateID" doesn't conform to snake_case naming style |
251 |
8 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'loc' member |
251 |
23 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
271 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
272 |
13 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
280 |
31 |
refactor |
unnecessary-comprehension |
R1721 |
get_testing_data |
Unnecessary use of a comprehension, use list(geoger.get_state_ids()) instead. |
293 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
294 |
13 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'loc' member |
295 |
14 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
297 |
12 |
refactor |
unnecessary-comprehension |
R1721 |
get_testing_data |
Unnecessary use of a comprehension, use list(geoger.get_state_names()) instead. |
313 |
12 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'loc' member |
313 |
27 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1281/1000) |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getVaccinationData" doesn't conform to snake_case naming style |
25 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
26 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
44 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
45 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
46 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
47 |
23 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
50 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (153/120) |
59 |
18 |
convention |
invalid-name |
C0103 |
sanity_checks |
Argument name "df" doesn't conform to snake_case naming style |
62 |
14 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
80 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
84 |
0 |
refactor |
too-many-arguments |
R0913 |
compute_vaccination_ratios |
Too many arguments (6/5) |
119 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_average_regions |
Argument name "df" doesn't conform to snake_case naming style |
171 |
0 |
refactor |
too-many-locals |
R0914 |
sanitizing_extrapolation_mobility |
Too many local variables (38/15) |
171 |
0 |
refactor |
too-many-branches |
R0912 |
sanitizing_extrapolation_mobility |
Too many branches (14/12) |
171 |
0 |
refactor |
too-many-statements |
R0915 |
sanitizing_extrapolation_mobility |
Too many statements (60/50) |
172 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Argument name "df" doesn't conform to snake_case naming style |
174 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (154/120) |
177 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (174/120) |
178 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
196 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "kk" doesn't conform to snake_case naming style |
218 |
4 |
convention |
consider-using-dict-items |
C0206 |
sanitizing_extrapolation_mobility |
Consider iterating with .items() |
228 |
12 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "ii" doesn't conform to snake_case naming style |
237 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (161/120) |
241 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (127/120) |
249 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (127/120) |
250 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (173/120) |
250 |
39 |
refactor |
unnecessary-comprehension |
R1721 |
sanitizing_extrapolation_mobility |
Unnecessary use of a comprehension, use list(age_groups) instead. |
259 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "ii" doesn't conform to snake_case naming style |
261 |
8 |
warning |
redefined-builtin |
W0622 |
sanitizing_extrapolation_mobility |
Redefining built-in 'id' |
261 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "id" doesn't conform to snake_case naming style |
275 |
8 |
convention |
consider-using-enumerate |
C0200 |
sanitizing_extrapolation_mobility |
Consider using enumerate instead of iterating with range and len |
352 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
360 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/120) |
365 |
25 |
convention |
singleton-comparison |
C0121 |
sanitizing_extrapolation_mobility |
Comparison 'np.isnan(df_san[column_names]) == True' should be 'np.isnan(df_san[column_names]) is True' if checking for the singleton value True, or 'bool(np.isnan(df_san[column_names]))' if testing for truthiness |
384 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "id" doesn't conform to snake_case naming style |
386 |
12 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "a" doesn't conform to snake_case naming style |
388 |
12 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "b" doesn't conform to snake_case naming style |
398 |
0 |
refactor |
too-many-arguments |
R0913 |
extrapolate_age_groups_vaccinations |
Too many arguments (8/5) |
398 |
0 |
refactor |
too-many-locals |
R0914 |
extrapolate_age_groups_vaccinations |
Too many local variables (23/15) |
405 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
423 |
4 |
convention |
consider-using-enumerate |
C0200 |
extrapolate_age_groups_vaccinations |
Consider using enumerate instead of iterating with range and len |
426 |
8 |
convention |
invalid-name |
C0103 |
extrapolate_age_groups_vaccinations |
Variable name "countyID" doesn't conform to snake_case naming style |
435 |
8 |
convention |
consider-using-enumerate |
C0200 |
extrapolate_age_groups_vaccinations |
Consider using enumerate instead of iterating with range and len |
457 |
12 |
convention |
consider-using-enumerate |
C0200 |
extrapolate_age_groups_vaccinations |
Consider using enumerate instead of iterating with range and len |
475 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (168/120) |
500 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/120) |
501 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
502 |
26 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
507 |
4 |
warning |
unused-variable |
W0612 |
fetch_vaccination_data |
Unused variable 'out_folder' |
520 |
0 |
refactor |
too-many-arguments |
R0913 |
process_vaccination_data |
Too many arguments (8/5) |
520 |
0 |
refactor |
too-many-locals |
R0914 |
process_vaccination_data |
Too many local variables (49/15) |
520 |
0 |
refactor |
too-many-branches |
R0912 |
process_vaccination_data |
Too many branches (41/12) |
520 |
0 |
refactor |
too-many-statements |
R0915 |
process_vaccination_data |
Too many statements (129/50) |
540 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (134/120) |
541 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (129/120) |
543 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (136/120) |
574 |
16 |
warning |
raise-missing-from |
W0707 |
process_vaccination_data |
Consider explicitly re-raising using 'except Exception as exc' and 'raise gd.DataError("Time data can't be transformed to intended format") from exc' |
631 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/120) |
634 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (142/120) |
661 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/120) |
693 |
12 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
704 |
12 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
717 |
8 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
741 |
8 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
754 |
8 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
838 |
11 |
refactor |
consider-using-in |
R1714 |
process_vaccination_data |
Consider merging these comparisons with 'in' by using 'sanitize_data in (1, 2)'. Use a set instead if elements are hashable. |
894 |
0 |
refactor |
too-many-arguments |
R0913 |
write_vaccination_data |
Too many arguments (6/5) |
894 |
0 |
refactor |
too-many-locals |
R0914 |
write_vaccination_data |
Too many local variables (34/15) |
894 |
0 |
refactor |
too-many-statements |
R0915 |
write_vaccination_data |
Too many statements (70/50) |
931 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (156/120) |
932 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (133/120) |
933 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (241/120) |
964 |
8 |
warning |
unused-variable |
W0612 |
write_vaccination_data |
Unused variable 'df_fullsum' |
992 |
30 |
refactor |
unnecessary-comprehension |
R1721 |
write_vaccination_data |
Unnecessary use of a comprehension, use list(unique_age_groups_old) instead. |
1005 |
30 |
refactor |
unnecessary-comprehension |
R1721 |
write_vaccination_data |
Unnecessary use of a comprehension, use list(unique_age_groups_old) instead. |
1058 |
8 |
warning |
unused-variable |
W0612 |
write_vaccination_data |
Unused variable 'df_fullsum_county' |
1086 |
8 |
warning |
unused-variable |
W0612 |
write_vaccination_data |
Unused variable 'df_fullsum_state' |
1109 |
30 |
refactor |
unnecessary-comprehension |
R1721 |
write_vaccination_data |
Unnecessary use of a comprehension, use list(unique_age_groups_new) instead. |
1124 |
30 |
refactor |
unnecessary-comprehension |
R1721 |
write_vaccination_data |
Unnecessary use of a comprehension, use list(unique_age_groups_new) instead. |
1130 |
4 |
refactor |
no-else-return |
R1705 |
write_vaccination_data |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
1178 |
0 |
refactor |
too-many-arguments |
R0913 |
get_vaccination_data |
Too many arguments (8/5) |
1178 |
0 |
refactor |
inconsistent-return-statements |
R1710 |
get_vaccination_data |
Either all return statements in a function should return an expression, or none of them should. |
1212 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (135/120) |
1213 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (151/120) |
1214 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (134/120) |
1215 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (134/120) |
1216 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (129/120) |
1218 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (136/120) |
1232 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1234 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (132/120) |
1235 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "modifyDataframeSeries" doesn't conform to snake_case naming style |
28 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
29 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
38 |
0 |
refactor |
too-many-arguments |
R0913 |
impute_and_reduce_df |
Too many arguments (8/5) |
38 |
0 |
refactor |
too-many-locals |
R0914 |
impute_and_reduce_df |
Too many local variables (24/15) |
38 |
0 |
refactor |
too-many-branches |
R0912 |
impute_and_reduce_df |
Too many branches (25/12) |
38 |
0 |
refactor |
too-many-statements |
R0915 |
impute_and_reduce_df |
Too many statements (79/50) |
45 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (154/120) |
46 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
49 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (127/120) |
50 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (127/120) |
51 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/120) |
70 |
7 |
convention |
singleton-comparison |
C0121 |
impute_and_reduce_df |
Comparison 'isinstance(first_date, str) == True' should be 'isinstance(first_date, str) is True' if checking for the singleton value True, or 'isinstance(first_date, str)' if testing for truthiness |
72 |
7 |
convention |
singleton-comparison |
C0121 |
impute_and_reduce_df |
Comparison 'isinstance(last_date, str) == True' should be 'isinstance(last_date, str) is True' if checking for the singleton value True, or 'isinstance(last_date, str)' if testing for truthiness |
79 |
4 |
warning |
bare-except |
W0702 |
impute_and_reduce_df |
No exception type(s) specified |
86 |
9 |
convention |
singleton-comparison |
C0121 |
impute_and_reduce_df |
Comparison 'isinstance(min_date, str) == True' should be 'isinstance(min_date, str) is True' if checking for the singleton value True, or 'isinstance(min_date, str)' if testing for truthiness |
90 |
9 |
convention |
singleton-comparison |
C0121 |
impute_and_reduce_df |
Comparison 'isinstance(max_date, str) == True' should be 'isinstance(max_date, str) is True' if checking for the singleton value True, or 'isinstance(max_date, str)' if testing for truthiness |
96 |
4 |
warning |
bare-except |
W0702 |
impute_and_reduce_df |
No exception type(s) specified |
109 |
8 |
refactor |
consider-using-min-builtin |
R1730 |
impute_and_reduce_df |
Consider using 'first_date = min(first_date, min_date_to_use)' instead of unnecessary if block |
111 |
8 |
refactor |
consider-using-max-builtin |
R1731 |
impute_and_reduce_df |
Consider using 'last_date = max(last_date, max_date_to_use)' instead of unnecessary if block |
212 |
0 |
refactor |
too-many-arguments |
R0913 |
split_column_based_on_values |
Too many arguments (6/5) |
216 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (146/120) |
220 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/120) |
248 |
4 |
convention |
consider-using-enumerate |
C0200 |
split_column_based_on_values |
Consider using enumerate instead of iterating with range and len |
267 |
36 |
convention |
invalid-name |
C0103 |
extract_subframe_based_on_dates |
Argument name "df" doesn't conform to snake_case naming style |
293 |
25 |
convention |
invalid-name |
C0103 |
insert_column_by_map |
Argument name "df" doesn't conform to snake_case naming style |
293 |
55 |
warning |
redefined-builtin |
W0622 |
insert_column_by_map |
Redefining built-in 'map' |
349 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
353 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
382 |
8 |
refactor |
no-else-continue |
R1724 |
create_intervals_mapping |
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it |
390 |
0 |
refactor |
too-many-locals |
R0914 |
fit_age_group_intervals |
Too many local variables (27/15) |
390 |
0 |
refactor |
too-many-branches |
R0912 |
fit_age_group_intervals |
Too many branches (35/12) |
390 |
0 |
refactor |
too-many-statements |
R0915 |
fit_age_group_intervals |
Too many statements (95/50) |
393 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/120) |
411 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (133/120) |
413 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (155/120) |
467 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/120) |
513 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (145/120) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1144/1000) |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
31 |
0 |
convention |
empty-docstring |
C0112 |
Test_cleanData |
Empty class docstring |
31 |
0 |
convention |
invalid-name |
C0103 |
Test_cleanData |
Class name "Test_cleanData" doesn't conform to PascalCase naming style |
31 |
0 |
refactor |
too-many-public-methods |
R0904 |
Test_cleanData |
Too many public methods (33/20) |
37 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.setUp |
Empty method docstring |
41 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.set_dirs_and_files |
Too many local variables (24/15) |
44 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
118 |
20 |
convention |
invalid-name |
C0103 |
Test_cleanData.set_dirs_and_files |
Variable name "e" doesn't conform to snake_case naming style |
119 |
25 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.set_dirs_and_files |
Using open without explicitly specifying an encoding |
119 |
74 |
convention |
invalid-name |
C0103 |
Test_cleanData.set_dirs_and_files |
Variable name "f" doesn't conform to snake_case naming style |
123 |
11 |
refactor |
consider-using-in |
R1714 |
Test_cleanData.set_dirs_and_files |
Consider merging these comparisons with 'in' by using 'what in ('all', 'jh')'. Use a set instead if elements are hashable. |
126 |
20 |
convention |
invalid-name |
C0103 |
Test_cleanData.set_dirs_and_files |
Variable name "e" doesn't conform to snake_case naming style |
127 |
25 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.set_dirs_and_files |
Using open without explicitly specifying an encoding |
127 |
77 |
convention |
invalid-name |
C0103 |
Test_cleanData.set_dirs_and_files |
Variable name "f" doesn't conform to snake_case naming style |
130 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_set_dirs_and_files |
Empty method docstring |
194 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_all_should_delete_all |
Empty method docstring |
205 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Empty method docstring |
213 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Using open without explicitly specifying an encoding |
213 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Variable name "f" doesn't conform to snake_case naming style |
217 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Using open without explicitly specifying an encoding |
217 |
64 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Variable name "f" doesn't conform to snake_case naming style |
231 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_cases |
Empty method docstring |
246 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_cases |
Redefining built-in 'dir' |
282 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_cases_h5 |
Empty method docstring |
297 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_cases_h5 |
Redefining built-in 'dir' |
333 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_cases_del_dir |
Empty method docstring |
343 |
12 |
refactor |
no-else-continue |
R1724 |
Test_cleanData.test_clean_data_cases_del_dir |
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it |
381 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_population |
Empty method docstring |
398 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_population |
Redefining built-in 'dir' |
433 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_population_hdf5 |
Empty method docstring |
450 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_population_hdf5 |
Redefining built-in 'dir' |
489 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_population_del_dir |
Empty method docstring |
504 |
12 |
refactor |
no-else-continue |
R1724 |
Test_cleanData.test_clean_data_population_del_dir |
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it |
521 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_population_del_dir |
Redefining built-in 'dir' |
538 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_all_false |
Empty method docstring |
555 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_all_false |
Redefining built-in 'dir' |
591 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_wrong_path |
Empty method docstring |
608 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_jh |
Empty method docstring |
625 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_jh |
Redefining built-in 'dir' |
654 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_jh_hdf5 |
Empty method docstring |
670 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_jh_hdf5 |
Redefining built-in 'dir' |
699 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_data_jh_both_endings |
Empty method docstring |
720 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_jh_both_endings |
Redefining built-in 'dir' |
742 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_txt |
Empty method docstring |
747 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_clean_txt |
Using open without explicitly specifying an encoding |
747 |
83 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_clean_txt |
Variable name "f" doesn't conform to snake_case naming style |
758 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_file_not_found_cases |
Empty method docstring |
766 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_cases |
Using open without explicitly specifying an encoding |
766 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_cases |
Variable name "f" doesn't conform to snake_case naming style |
775 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_file_not_found_population |
Empty method docstring |
783 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_population |
Using open without explicitly specifying an encoding |
783 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_population |
Variable name "f" doesn't conform to snake_case naming style |
792 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_file_not_found_jh |
Empty method docstring |
800 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_jh |
Using open without explicitly specifying an encoding |
800 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_jh |
Variable name "f" doesn't conform to snake_case naming style |
809 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_file_not_found_divi |
Empty method docstring |
817 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_divi |
Using open without explicitly specifying an encoding |
817 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_divi |
Variable name "f" doesn't conform to snake_case naming style |
826 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_file_not_found_vacc |
Empty method docstring |
834 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_vacc |
Using open without explicitly specifying an encoding |
834 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_vacc |
Variable name "f" doesn't conform to snake_case naming style |
843 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_file_not_found_commuter |
Empty method docstring |
851 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_commuter |
Using open without explicitly specifying an encoding |
851 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_commuter |
Variable name "f" doesn't conform to snake_case naming style |
860 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_file_not_found_testing |
Empty method docstring |
868 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_testing |
Using open without explicitly specifying an encoding |
868 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_testing |
Variable name "f" doesn't conform to snake_case naming style |
877 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_no_files |
Empty method docstring |
912 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_cli_default |
Empty method docstring |
912 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_default |
Too many local variables (16/15) |
921 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_default |
Variable name "jh" doesn't conform to snake_case naming style |
938 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_cli_folder |
Empty method docstring |
938 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_folder |
Too many local variables (16/15) |
946 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_folder |
Variable name "jh" doesn't conform to snake_case naming style |
963 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_cli_all |
Empty method docstring |
963 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_all |
Too many local variables (16/15) |
972 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_all |
Variable name "jh" doesn't conform to snake_case naming style |
989 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_cli_cases |
Empty method docstring |
989 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_cases |
Too many local variables (16/15) |
998 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_cases |
Variable name "jh" doesn't conform to snake_case naming style |
1015 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_cli_jh |
Empty method docstring |
1015 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_jh |
Too many local variables (16/15) |
1024 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_jh |
Variable name "jh" doesn't conform to snake_case naming style |
1041 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_cli_popul |
Empty method docstring |
1041 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_popul |
Too many local variables (16/15) |
1050 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_popul |
Variable name "jh" doesn't conform to snake_case naming style |
1067 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_cli_divi_vacc_commuter_testing |
Empty method docstring |
1067 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_divi_vacc_commuter_testing |
Too many local variables (16/15) |
1076 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_divi_vacc_commuter_testing |
Variable name "jh" doesn't conform to snake_case naming style |
1093 |
4 |
convention |
empty-docstring |
C0112 |
Test_cleanData.test_clean_divi_vacc_commuter_testing_json |
Empty method docstring |
1109 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_divi_vacc_commuter_testing_json |
Redefining built-in 'dir' |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "test_epidata_geoModificationGermany" doesn't conform to snake_case naming style |
23 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
30 |
0 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany |
Empty class docstring |
30 |
0 |
convention |
invalid-name |
C0103 |
Test_geoModificationGermany |
Class name "Test_geoModificationGermany" doesn't conform to PascalCase naming style |
30 |
0 |
refactor |
too-many-public-methods |
R0904 |
Test_geoModificationGermany |
Too many public methods (22/20) |
186 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.setUp |
Empty method docstring |
190 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_state_IDs |
Empty method docstring |
190 |
4 |
convention |
invalid-name |
C0103 |
Test_geoModificationGermany.test_get_state_IDs |
Method name "test_get_state_IDs" doesn't conform to snake_case naming style |
200 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_state_names |
Empty method docstring |
206 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_state_names_and_ids |
Empty method docstring |
212 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_state_names_and_ids |
Consider using enumerate instead of iterating with range and len |
220 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_state_names_and_ids |
Consider using enumerate instead of iterating with range and len |
225 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_insert_names_of_states |
Empty method docstring |
233 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_county_ids |
Empty method docstring |
260 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_county_names |
Empty method docstring |
281 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_county_names_and_ids |
Empty method docstring |
288 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_county_names_and_ids |
Consider using enumerate instead of iterating with range and len |
299 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_county_names_and_ids |
Consider using enumerate instead of iterating with range and len |
307 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_insert_county_names |
Empty method docstring |
319 |
26 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
349 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_check_for_all_counties |
Consider using enumerate instead of iterating with range and len |
363 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_countyid_to_stateid_map |
Empty method docstring |
368 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_countyid_to_stateid_map |
Use a generator instead 'all(countytostatestr in str(countytostate) for countytostatestr in self.countytostate_string)' |
375 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_countyid_to_stateid_map |
Use a generator instead 'all(countytostatestr in str(countytostate) for countytostatestr in self.countytostate_zfill_string)' |
380 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_stateid_to_countyids_map |
Empty method docstring |
386 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_stateid_to_countyids_map |
Use a generator instead 'all(statetocountystr in str(statetocounty) for statetocountystr in self.statetocounty_string)' |
396 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_stateid_to_countyids_map |
Use a generator instead 'all(statetocountystr in str(statetocounty) for statetocountystr in self.statetocounty_zfill_string)' |
400 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_governing_regions |
Empty method docstring |
411 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_official_county_table |
Empty method docstring |
417 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
418 |
16 |
warning |
redundant-unittest-assert |
W1503 |
Test_geoModificationGermany.test_get_official_county_table |
Redundant use of assertFalse with constant value 'headers have changed.' |
420 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_nuts3_county_id_map |
Empty method docstring |
426 |
12 |
warning |
redefined-builtin |
W0622 |
Test_geoModificationGermany.test_get_nuts3_county_id_map |
Redefining built-in 'id' |
426 |
12 |
convention |
invalid-name |
C0103 |
Test_geoModificationGermany.test_get_nuts3_county_id_map |
Variable name "id" doesn't conform to snake_case naming style |
429 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_intermediateregion_IDs |
Empty method docstring |
429 |
4 |
convention |
invalid-name |
C0103 |
Test_geoModificationGermany.test_get_intermediateregion_IDs |
Method name "test_get_intermediateregion_IDs" doesn't conform to snake_case naming style |
447 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_intermediateregion_names |
Empty method docstring |
464 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.get_intermediateregion_to_name |
Empty method docstring |
478 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_intermediateregion_names_and_ids |
Empty method docstring |
485 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_intermediateregion_names_and_ids |
Consider using enumerate instead of iterating with range and len |
498 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_intermediateregion_names_and_ids |
Consider using enumerate instead of iterating with range and len |
509 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_countyid_to_intermediateregionid_map |
Empty method docstring |
514 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_countyid_to_intermediateregionid_map |
Use a generator instead 'all(countytoregionstr in str(countytoregion) for countytoregionstr in self.countytoregion_string)' |
525 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_countyid_to_intermediateregionid_map |
Use a generator instead 'all(countytoregionstr in str(countytoregion) for countytoregionstr in self.countytoregion_zfill_string)' |
535 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_get_intermediateregionid_to_countyids_map |
Empty method docstring |
541 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_intermediateregionid_to_countyids_map |
Use a generator instead 'all(regiontocountystr in str(regiontocounty) for regiontocountystr in self.regiontocounty_string)' |
558 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_intermediateregionid_to_countyids_map |
Use a generator instead 'all(regiontocountystr in str(regiontocounty) for regiontocountystr in self.regiontocounty_zfill_string)' |
572 |
4 |
convention |
empty-docstring |
C0112 |
Test_geoModificationGermany.test_merge_df_counties |
Empty method docstring |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "test_epidata_getCaseData" doesn't conform to snake_case naming style |
27 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
35 |
0 |
convention |
empty-docstring |
C0112 |
TestGetCaseData |
Empty class docstring |
52 |
9 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData |
Using open without explicitly specifying an encoding |
118 |
9 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData |
Using open without explicitly specifying an encoding |
129 |
9 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData |
Using open without explicitly specifying an encoding |
140 |
4 |
convention |
empty-docstring |
C0112 |
TestGetCaseData.setUp |
Empty method docstring |
147 |
26 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
153 |
13 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData.write_case_data |
Using open without explicitly specifying an encoding |
153 |
47 |
convention |
invalid-name |
C0103 |
TestGetCaseData.write_case_data |
Variable name "f" doesn't conform to snake_case naming style |
159 |
26 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
165 |
13 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData.write_case_data_arcgis |
Using open without explicitly specifying an encoding |
165 |
47 |
convention |
invalid-name |
C0103 |
TestGetCaseData.write_case_data_arcgis |
Variable name "f" doesn't conform to snake_case naming style |
171 |
26 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
176 |
13 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData.write_case_data_not_all_states |
Using open without explicitly specifying an encoding |
176 |
47 |
convention |
invalid-name |
C0103 |
TestGetCaseData.write_case_data_not_all_states |
Variable name "f" doesn't conform to snake_case naming style |
180 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data |
Too many local variables (16/15) |
183 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
244 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_split_berlin |
Too many local variables (24/15) |
244 |
4 |
refactor |
too-many-statements |
R0915 |
TestGetCaseData.test_get_case_data_split_berlin |
Too many statements (54/50) |
247 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
293 |
8 |
convention |
invalid-name |
C0103 |
TestGetCaseData.test_get_case_data_split_berlin |
Variable name "df" doesn't conform to snake_case naming style |
355 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_moving_average |
Too many local variables (22/15) |
355 |
4 |
refactor |
too-many-statements |
R0915 |
TestGetCaseData.test_get_case_data_moving_average |
Too many statements (56/50) |
355 |
48 |
warning |
unused-argument |
W0613 |
TestGetCaseData.test_get_case_data_moving_average |
Unused argument 'mock_file' |
358 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
508 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_impute_dates |
Too many local variables (19/15) |
508 |
46 |
warning |
unused-argument |
W0613 |
TestGetCaseData.test_get_case_data_impute_dates |
Unused argument 'mock_file' |
511 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
596 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_moving_average_and_split_berlin |
Too many local variables (18/15) |
596 |
65 |
warning |
unused-argument |
W0613 |
TestGetCaseData.test_get_case_data_moving_average_and_split_berlin |
Unused argument 'mock_file' |
599 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
648 |
4 |
convention |
empty-docstring |
C0112 |
TestGetCaseData.test_get_case_data_all_dates_and_split_berlin |
Empty method docstring |
688 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_no_raw |
Too many local variables (21/15) |
691 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
731 |
8 |
convention |
invalid-name |
C0103 |
TestGetCaseData.test_no_raw |
Variable name "df" doesn't conform to snake_case naming style |
760 |
4 |
convention |
empty-docstring |
C0112 |
TestGetCaseData.test_check_for_completeness |
Empty method docstring |
769 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
801 |
4 |
convention |
empty-docstring |
C0112 |
TestGetCaseData.test_get_case_data_timeframe |
Empty method docstring |
801 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_timeframe |
Too many local variables (20/15) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "test_epidata_getDataIntoPandasDataFrame" doesn't conform to snake_case naming style |
28 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
36 |
0 |
convention |
empty-docstring |
C0112 |
Test_getDataIntoPandasDataFrame |
Empty class docstring |
36 |
0 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame |
Class name "Test_getDataIntoPandasDataFrame" doesn't conform to PascalCase naming style |
60 |
9 |
warning |
unspecified-encoding |
W1514 |
Test_getDataIntoPandasDataFrame |
Using open without explicitly specifying an encoding |
65 |
4 |
convention |
empty-docstring |
C0112 |
Test_getDataIntoPandasDataFrame.setUp |
Empty method docstring |
72 |
28 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
75 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_getDataIntoPandasDataFrame.write_data |
Using open without explicitly specifying an encoding |
75 |
40 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.write_data |
Variable name "f" doesn't conform to snake_case naming style |
78 |
4 |
convention |
empty-docstring |
C0112 |
Test_getDataIntoPandasDataFrame.test_cli_correct_default |
Empty method docstring |
78 |
4 |
refactor |
too-many-statements |
R0915 |
Test_getDataIntoPandasDataFrame.test_cli_correct_default |
Too many statements (70/50) |
167 |
27 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
180 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
180 |
50 |
warning |
unused-variable |
W0612 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Unused variable 'cm' |
186 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
194 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
202 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
211 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
216 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
219 |
4 |
convention |
empty-docstring |
C0112 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Empty method docstring |
236 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'read_data == True' should be 'read_data is True' if checking for the singleton value True, or 'read_data' if testing for truthiness |
239 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'no_raw == True' should be 'no_raw is True' if checking for the singleton value True, or 'no_raw' if testing for truthiness |
248 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'read_data == True' should be 'read_data is True' if checking for the singleton value True, or 'read_data' if testing for truthiness |
251 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'no_raw == True' should be 'no_raw is True' if checking for the singleton value True, or 'no_raw' if testing for truthiness |
269 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'read_data == True' should be 'read_data is True' if checking for the singleton value True, or 'read_data' if testing for truthiness |
272 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'impute_dates == True' should be 'impute_dates is True' if checking for the singleton value True, or 'impute_dates' if testing for truthiness |
273 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'split_berlin == True' should be 'split_berlin is True' if checking for the singleton value True, or 'split_berlin' if testing for truthiness |
275 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'rep_date == False' should be 'rep_date is False' if checking for the singleton value False, or 'not rep_date' if testing for falsiness |
323 |
4 |
convention |
empty-docstring |
C0112 |
Test_getDataIntoPandasDataFrame.test_append_filename |
Empty method docstring |
345 |
4 |
convention |
empty-docstring |
C0112 |
Test_getDataIntoPandasDataFrame.test_check_dir |
Empty method docstring |
358 |
4 |
convention |
empty-docstring |
C0112 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Empty method docstring |
363 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d1" doesn't conform to snake_case naming style |
364 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d1" doesn't conform to snake_case naming style |
365 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d2" doesn't conform to snake_case naming style |
366 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d2" doesn't conform to snake_case naming style |
368 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d" doesn't conform to snake_case naming style |
369 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "df" doesn't conform to snake_case naming style |
386 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "f" doesn't conform to snake_case naming style |
386 |
12 |
warning |
unspecified-encoding |
W1514 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Using open without explicitly specifying an encoding |
386 |
12 |
refactor |
consider-using-with |
R1732 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Consider using 'with' for resource-allocating operations |
407 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "f" doesn't conform to snake_case naming style |
407 |
12 |
warning |
unspecified-encoding |
W1514 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Using open without explicitly specifying an encoding |
407 |
12 |
refactor |
consider-using-with |
R1732 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Consider using 'with' for resource-allocating operations |
417 |
4 |
convention |
empty-docstring |
C0112 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Empty method docstring |
422 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d1" doesn't conform to snake_case naming style |
423 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d1" doesn't conform to snake_case naming style |
424 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d2" doesn't conform to snake_case naming style |
425 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d2" doesn't conform to snake_case naming style |
427 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d" doesn't conform to snake_case naming style |
428 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "df" doesn't conform to snake_case naming style |
442 |
4 |
refactor |
too-many-arguments |
R0913 |
Test_getDataIntoPandasDataFrame.test_call_functions |
Too many arguments (6/5) |
447 |
23 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
448 |
32 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
449 |
26 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
450 |
26 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
451 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
506 |
4 |
convention |
empty-docstring |
C0112 |
Test_getDataIntoPandasDataFrame.test_get_file_read |
Empty method docstring |
518 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_get_file_read |
Variable name "df" doesn't conform to snake_case naming style |
528 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
553 |
25 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
554 |
23 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
555 |
28 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata_test.test_epidata_getCaseData:[22:30]
==memilio.epidata_test.test_epidata_get_jh_data:[20:28]
import unittest
from datetime import date, datetime
from unittest.mock import patch
import pandas as pd
from pyfakefs import fake_filesystem_unittest
from memilio.epidata import defaultDict as dd |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata_test.test_epidata_getHospitalizationData:[110:116]
==memilio.epidata_test.test_epidata_get_divi_data:[257:263]
df = pd.DataFrame(
{'date_fake': [1, 2, 3],
'6': [6, 7, 8],
'7': [7, 8, 9],
'8': [8, 9, 0],
'bundesland': [2, 3, 4], |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCaseData:[236:242]
==memilio.epidata.getDIVIData:[139:145]
try:
df[dd.EngEng['date']] = pd.to_datetime(
df[dd.EngEng['date']], format="ISO8601")
except ValueError:
try:
df[dd.EngEng['date']] = pd.to_datetime( |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCommuterMobility:[25:32]
==memilio.epidata.transformMobilityData:[19:29]
import os
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
# activate CoW for more predictable behaviour of pandas DataFrames |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getPopulationData:[30:50]
==memilio.epidata.transformMobilityData:[21:41]
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
# activate CoW for more predictable behaviour of pandas DataFrames
pd.options.mode.copy_on_write = True
def getMobilityFromFile(directory, mobility_file):
""" Gets a mobility matrix that is written in a plain txt file
under the given directory into a pandas data frame.
:param directory: Path to folder where data is read.
:param mobility_file: Mobility matrix file which has to be updated.
:returns: Mobility matrix data frame.
""" |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCaseData:[36:43]
==memilio.epidata.transformWeatherData:[23:32]
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata_test.test_epidata_get_vaccination_data:[24:30]
==memilio.epidata_test.test_epidata_transform_mobility_data:[23:29]
import numpy as np
import pandas as pd
from pyfakefs import fake_filesystem_unittest
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata_test.test_epidata_getCommuterMobility:[66:82]
==memilio.epidata_test.test_epidata_get_vaccination_data:[102:123]
filename = os.path.join(
here, 'test_data', 'TestSetPopulationFinal.json')
with open(filename) as file_object:
df_pop = pd.DataFrame(json.load(file_object))
def setUp(self):
""" """
self.setUpPyfakefs()
@patch('memilio.epidata.getVaccinationData.download_vaccination_data',
return_value=df_vacc_data_altern)
@patch('memilio.epidata.getPopulationData.get_population_data', return_value=df_pop)
@patch('memilio.epidata.getDataIntoPandasDataFrame.user_choice', return_value=True)
def test_get_vaccination_data_alternative_ages(self, mockin, mockp, mockv):
"""
:param mockin:
:param mockp:
:param mockv:
""" |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCaseData:[36:42]
==memilio.epidata.transformMobilityData:[21:29]
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
# activate CoW for more predictable behaviour of pandas DataFrames |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getTestingData:[27:48]
==memilio.epidata.transformWeatherData:[26:63]
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs
# activate CoW for more predictable behaviour of pandas DataFrames
pd.options.mode.copy_on_write = True
def transformWeatherData(read_data=dd.defaultDict['read_data'],
file_format=dd.defaultDict['file_format'],
out_folder=dd.defaultDict['out_folder'],
start_date=dd.defaultDict['start_date'],
end_date=dd.defaultDict['end_date'],
moving_average=dd.defaultDict['moving_average'],
merge_berlin=True,
merge_eisenach=False,
**kwargs
):
""" ...
:param file_format: File format which is used for writing the data.
Default defined in defaultDict.
:param out_folder: Path to folder where data is written in folder
out_folder/Germany. (Default value = dd.defaultDict['out_folder'])
:param start_date: Default = '', taken from read data] Start date
of stored data frames.
:param end_date: Default = '', taken from read data] End date of
stored data frames.
:param moving_average: 0 [Default] or Number > 0. Defines the number of
days for which a centered moving average is computed.
:param read_data: (Default value = dd.defaultDict['read_data'])
:param merge_berlin: (Default value = True)
:param merge_eisenach: (Default value = False)
:param **kwargs:
""" |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getJHData:[31:70]
==memilio.epidata.transformWeatherData:[28:66]
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs
# activate CoW for more predictable behaviour of pandas DataFrames
pd.options.mode.copy_on_write = True
def transformWeatherData(read_data=dd.defaultDict['read_data'],
file_format=dd.defaultDict['file_format'],
out_folder=dd.defaultDict['out_folder'],
start_date=dd.defaultDict['start_date'],
end_date=dd.defaultDict['end_date'],
moving_average=dd.defaultDict['moving_average'],
merge_berlin=True,
merge_eisenach=False,
**kwargs
):
""" ...
:param file_format: File format which is used for writing the data.
Default defined in defaultDict.
:param out_folder: Path to folder where data is written in folder
out_folder/Germany. (Default value = dd.defaultDict['out_folder'])
:param start_date: Default = '', taken from read data] Start date
of stored data frames.
:param end_date: Default = '', taken from read data] End date of
stored data frames.
:param moving_average: 0 [Default] or Number > 0. Defines the number of
days for which a centered moving average is computed.
:param read_data: (Default value = dd.defaultDict['read_data'])
:param merge_berlin: (Default value = True)
:param merge_eisenach: (Default value = False)
:param **kwargs:
"""
conf = gd.Conf(out_folder, **kwargs)
out_folder = conf.path_to_use
|
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getDIVIData:[42:74]
==memilio.epidata.transformWeatherData:[24:32]
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs
# activate CoW for more predictable behaviour of pandas DataFrames |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getPopulationData:[30:38]
==memilio.epidata.transformWeatherData:[23:29]
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getHospitalizationData:[32:52]
==memilio.epidata.getJHData:[28:67]
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs
# activate CoW for more predictable behaviour of pandas DataFrames
pd.options.mode.copy_on_write = True
def get_jh_data(read_data=dd.defaultDict['read_data'],
file_format=dd.defaultDict['file_format'],
out_folder=dd.defaultDict['out_folder'],
start_date=date(2020, 1, 22),
end_date=dd.defaultDict['end_date'],
impute_dates=dd.defaultDict['impute_dates'],
**kwargs):
""" Download data from John Hopkins University
Data is either downloaded and afterwards stored or loaded from a stored filed.
The file is "FullData_JohnHopkins.json"
Working with the data includes
- rename columns such that "/" is deleted, e.g Country/Region becomes CountryRegion
- data of all countries together are written to a file
- download the data from following countries in a separate file
and are stored in the according folders with the country name
- Germany, SouthKorea, Spain, France, Italy, US, China
- furthermore, all countries, for which provinces are added, are written to a file
:param read_data: True or False. Defines if data is read from file or downloaded. Default defined in defaultDict. (Default value = dd.defaultDict['read_data'])
:param file_format: File format which is used for writing the data. Default defined in defaultDict. (Default value = dd.defaultDict['file_format'])
:param out_folder: Folder where data is written to. Default defined in defaultDict. (Default value = dd.defaultDict['out_folder'])
:param start_date: Date of first date in dataframe. Default defined in defaultDict. (Default value = date(2020, 1, 22))
:param end_date: Date of last date in dataframe. Default defined in defaultDict. (Default value = dd.defaultDict['end_date'])
:param impute_dates: Currently not used] True or False. Defines if values for dates without new information are imputed. Default defined in defaultDict. (Default value = dd.defaultDict['impute_dates'])
:param **kwargs:
""" |
25 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
26 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
34 |
0 |
convention |
empty-docstring |
C0112 |
TestGetVaccinationData |
Empty class docstring |
75 |
4 |
convention |
consider-using-enumerate |
C0200 |
TestGetVaccinationData |
Consider using enumerate instead of iterating with range and len |
105 |
9 |
warning |
unspecified-encoding |
W1514 |
TestGetVaccinationData |
Using open without explicitly specifying an encoding |
108 |
4 |
convention |
empty-docstring |
C0112 |
TestGetVaccinationData.setUp |
Empty method docstring |
116 |
57 |
warning |
unused-argument |
W0613 |
TestGetVaccinationData.test_get_vaccination_data_alternative_ages |
Unused argument 'mockin' |
116 |
65 |
warning |
unused-argument |
W0613 |
TestGetVaccinationData.test_get_vaccination_data_alternative_ages |
Unused argument 'mockp' |
116 |
72 |
warning |
unused-argument |
W0613 |
TestGetVaccinationData.test_get_vaccination_data_alternative_ages |
Unused argument 'mockv' |
119 |
22 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
120 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
121 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
136 |
55 |
warning |
unused-argument |
W0613 |
TestGetVaccinationData.test_get_standard_vaccination_sanitize_3 |
Unused argument 'mockin' |
136 |
63 |
warning |
unused-argument |
W0613 |
TestGetVaccinationData.test_get_standard_vaccination_sanitize_3 |
Unused argument 'mockp' |
136 |
70 |
warning |
unused-argument |
W0613 |
TestGetVaccinationData.test_get_standard_vaccination_sanitize_3 |
Unused argument 'mockv' |
139 |
22 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
140 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
141 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
149 |
33 |
warning |
unused-argument |
W0613 |
TestGetVaccinationData.test_sanity_checks |
Unused argument 'mockv' |
152 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
199 |
4 |
convention |
empty-docstring |
C0112 |
TestGetVaccinationData.test_sanitizing_based_on_regions |
Empty method docstring |
252 |
4 |
convention |
empty-docstring |
C0112 |
TestGetVaccinationData.test_extrapolate_age_groups_vaccinations |
Empty method docstring |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "test_epidata_modifyDataframeSeries" doesn't conform to snake_case naming style |
24 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
25 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
31 |
0 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries |
Empty class docstring |
31 |
0 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries |
Class name "Test_modifyDataframeSeries" doesn't conform to PascalCase naming style |
105 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.setUp |
Empty method docstring |
109 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Empty method docstring |
116 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
131 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/120) |
145 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/120) |
167 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
183 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/120) |
197 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (131/120) |
225 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
239 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
262 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/120) |
278 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
329 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
337 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
352 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (148/120) |
366 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.test_split_column_based_on_values |
Empty method docstring |
426 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_split_column_based_on_values |
Consider using enumerate instead of iterating with range and len |
430 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.test_split_column_based_on_values_compute_cumsum |
Empty method docstring |
440 |
23 |
refactor |
unnecessary-comprehension |
R1721 |
Test_modifyDataframeSeries.test_split_column_based_on_values_compute_cumsum |
Unnecessary use of a comprehension, use list(range(0, 144)) instead. |
492 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.test_extract_subframe_based_on_dates |
Empty method docstring |
511 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.test_insert_column_by_map |
Empty method docstring |
516 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_insert_column_by_map |
Variable name "df" doesn't conform to snake_case naming style |
528 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_insert_column_by_map |
Variable name "df" doesn't conform to snake_case naming style |
537 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.test_extract_subframe_based_on_dates_single_date |
Empty method docstring |
545 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.test_extract_subframe_based_on_dates_multiple_dates |
Empty method docstring |
553 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.test_interval_mapping |
Empty method docstring |
553 |
4 |
refactor |
too-many-locals |
R0914 |
Test_modifyDataframeSeries.test_interval_mapping |
Too many local variables (21/15) |
626 |
4 |
convention |
empty-docstring |
C0112 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Empty method docstring |
626 |
4 |
refactor |
too-many-locals |
R0914 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Too many local variables (27/15) |
682 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
684 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
686 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
688 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
690 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
716 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
718 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
720 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
Name |
Count |
../pylintrc |
71 |
memilio.epidata.getHospitalizationData |
18 |
memilio.epidata.defaultDict |
12 |
memilio.epidata.transformWeatherData |
15 |
memilio.epidata.getPopulationData |
22 |
memilio.epidata.geoModificationGermany |
28 |
memilio.epidata.modifyDataframeSeries |
38 |
memilio.epidata.transformMobilityData |
13 |
memilio.epidata.progress_indicator |
11 |
memilio.epidata.getDIVIData |
26 |
memilio.epidata.getCaseData |
70 |
memilio.epidata.getCommuterMobility |
44 |
memilio.epidata.cleanData |
7 |
memilio.epidata.getJHData |
18 |
memilio.epidata.getVaccinationData |
94 |
memilio.epidata.getSimulationData |
17 |
memilio.epidata.getNPIData |
102 |
memilio.epidata.getDataIntoPandasDataFrame |
71 |
memilio.epidata.getTestingData |
47 |
memilio.epidata.customPlot |
12 |
memilio.epidata_test.test_epidata_getCommuterMobility |
23 |
memilio.epidata_test.test_epidata_modifyDataframeSeries |
43 |
memilio.epidata_test.test_epidata_getHospitalizationData |
18 |
memilio.epidata_test.test_epidata_progress_indicator |
20 |
memilio.epidata_test.test_epidata_cleandata |
92 |
memilio.epidata_test.test_epidata_get_jh_data |
18 |
memilio.epidata_test.test_epidata_geoModificationGermany |
49 |
memilio.epidata_test.test_epidata_getNPIData |
17 |
memilio.epidata_test.test_epidata_get_divi_data |
27 |
memilio.epidata_test.test_epidata_getDataIntoPandasDataFrame |
63 |
memilio.epidata_test.test_epidata_get_simulation_data |
17 |
memilio.epidata_test.test_epidata_getCaseData |
41 |
memilio.epidata_test.test_epidata_defaultDict |
10 |
memilio.epidata_test.test_epidata_customPlot |
8 |
memilio.epidata_test.test_epidata_transform_mobility_data |
16 |
memilio.epidata_test.test_epidata_get_population_data |
20 |
memilio.epidata_test.test_epidata_get_vaccination_data |
37 |
Name |
Count |
../pylintrc |
71 |
memilio/epidata/getHospitalizationData.py |
18 |
memilio/epidata/defaultDict.py |
12 |
memilio/epidata/transformWeatherData.py |
15 |
memilio/epidata/getPopulationData.py |
22 |
memilio/epidata/geoModificationGermany.py |
28 |
memilio/epidata/modifyDataframeSeries.py |
38 |
memilio/epidata/transformMobilityData.py |
13 |
memilio/epidata/progress_indicator.py |
11 |
memilio/epidata/getDIVIData.py |
26 |
memilio/epidata/getCaseData.py |
70 |
memilio/epidata/getCommuterMobility.py |
44 |
memilio/epidata/cleanData.py |
7 |
memilio/epidata/getJHData.py |
18 |
memilio/epidata/getVaccinationData.py |
94 |
memilio/epidata/getSimulationData.py |
17 |
memilio/epidata/getNPIData.py |
102 |
memilio/epidata/getDataIntoPandasDataFrame.py |
71 |
memilio/epidata/getTestingData.py |
47 |
memilio/epidata/customPlot.py |
12 |
memilio/epidata_test/test_epidata_getCommuterMobility.py |
23 |
memilio/epidata_test/test_epidata_modifyDataframeSeries.py |
43 |
memilio/epidata_test/test_epidata_getHospitalizationData.py |
18 |
memilio/epidata_test/test_epidata_progress_indicator.py |
20 |
memilio/epidata_test/test_epidata_cleandata.py |
92 |
memilio/epidata_test/test_epidata_get_jh_data.py |
18 |
memilio/epidata_test/test_epidata_geoModificationGermany.py |
49 |
memilio/epidata_test/test_epidata_getNPIData.py |
17 |
memilio/epidata_test/test_epidata_get_divi_data.py |
27 |
memilio/epidata_test/test_epidata_getDataIntoPandasDataFrame.py |
63 |
memilio/epidata_test/test_epidata_get_simulation_data.py |
17 |
memilio/epidata_test/test_epidata_getCaseData.py |
41 |
memilio/epidata_test/test_epidata_defaultDict.py |
10 |
memilio/epidata_test/test_epidata_customPlot.py |
8 |
memilio/epidata_test/test_epidata_transform_mobility_data.py |
16 |
memilio/epidata_test/test_epidata_get_population_data.py |
20 |
memilio/epidata_test/test_epidata_get_vaccination_data.py |
37 |