We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac7bec commit 41c5d6fCopy full SHA for 41c5d6f
1 file changed
malariagen_data/anoph/frq_base.py
@@ -276,7 +276,7 @@ def plot_frequencies_heatmap(
276
heatmap_df.set_index(index_col, inplace=True)
277
278
# Clean column names.
279
- heatmap_df.columns = heatmap_df.columns.str.lstrip("frq_")
+ heatmap_df.columns = heatmap_df.columns.str.removeprefix("frq_")
280
281
# Deal with width and height.
282
if width is None:
@@ -385,8 +385,8 @@ def plot_frequencies_time_series(
385
386
# Build a long-form dataframe from the dataset.
387
dfs = []
388
- for cohort_index, cohort in enumerate(df_cohorts.itertuples()):
389
- ds_cohort = ds.isel(cohorts=cohort_index)
+ for cohort in df_cohorts.itertuples():
+ ds_cohort = ds.isel(cohorts=cohort.Index)
390
df = pd.DataFrame(
391
{
392
"taxon": cohort.taxon,
0 commit comments