Skip to content

Commit 509ad40

Browse files
authored
Merge pull request #898 from 31puneet/fix/frq-base-lstrip-and-timeseries-bugs
Fix lstrip column corruption in plot_frequencies_heatmap()
2 parents 7a2bf42 + 01d5706 commit 509ad40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

malariagen_data/anoph/frq_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def plot_frequencies_heatmap(
276276
heatmap_df.set_index(index_col, inplace=True)
277277

278278
# Clean column names.
279-
heatmap_df.columns = heatmap_df.columns.str.lstrip("frq_")
279+
heatmap_df.columns = heatmap_df.columns.str.removeprefix("frq_")
280280

281281
# Deal with width and height.
282282
if width is None:

0 commit comments

Comments
 (0)