We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d3ae68 commit cad22acCopy full SHA for cad22ac
Pilot1/Uno/uno_data.py
@@ -183,6 +183,12 @@ def load_combo_dose_response(fraction=True):
183
path = get_file(DATA_URL + "ComboDrugGrowth_Nov2017.csv")
184
df = global_cache.get(path)
185
if df is None:
186
+ # Handle multiple Pandas APIs:
187
+ if pd.__version__ >= "1.4.0":
188
+ pandas_csv_errors = { "on_bad_lines": "warn" }
189
+ else:
190
+ pandas_csv_errors = { "error_bad_lines": False,
191
+ "warn_bad_lines": True }
192
df = pd.read_csv(
193
path,
194
sep=",",
@@ -211,8 +217,7 @@ def load_combo_dose_response(fraction=True):
211
217
"SCREENER": str,
212
218
"STUDY": str,
213
219
},
214
- error_bad_lines=False,
215
- warn_bad_lines=True,
220
+ **pandas_csv_errors
216
221
)
222
global_cache[path] = df
223
0 commit comments