Skip to content

Commit a8deee2

Browse files
authored
Merge pull request #166 from qthequartermasterman/is-not-equals
fix: Switch 'is not' to '!=' for correctness and avoid SyntaxWarning
2 parents 63d368e + 86f9e23 commit a8deee2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cenpy/moe/pseudo_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def pseudo(
165165
zero_ests = ests.copy()
166166
for col in zero_ests.columns:
167167
zero_ests[col] = base.zero_bool
168-
elif ignore_zeros is not "no": # to catch bad parameter values
168+
elif ignore_zeros != "no": # to catch bad parameter values
169169
raise Exception("ignore_zeros must be 'all', 'partial' or 'no'")
170170

171171
# setup output array

cenpy/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def query(self, cols=None, geo_unit="", geo_filter={}, apikey="", **kwargs):
221221
assert all([col in df.columns for col in cols])
222222
if convert_numeric:
223223
df = df.infer_objects()
224-
if index is not "":
224+
if index != "":
225225
df.index = df[index]
226226
return df
227227
except (ValueError, JSONDecodeError):

0 commit comments

Comments
 (0)