Skip to content

Commit

Permalink
Fix: TypeError: DataFrame.drop() takes from 1 to 2 positional argumen…
Browse files Browse the repository at this point in the history
…ts but 3 were given
  • Loading branch information
LindoNkambule committed Jan 16, 2024
1 parent 442c06e commit 3ca36fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gwaspy/preimp_qc/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def manhattan_plot(pvals, significance_threshold: float = -np.log10(5E-08), titl
ht = source.select_rows(p_value=pvals).rows()

data = ht.to_pandas()
data = data.drop('alleles', 1) # remove the 'allele' column
data = data.drop(columns=['alleles']) # remove the 'allele' column
data['locus'] = data['locus'].astype(str)
data[['CHROM', 'POS']] = data.locus.str.split(":", expand=True)
data.columns = ['locus', 'p', 'chromosome', 'position'] # rename columns
Expand Down

0 comments on commit 3ca36fd

Please sign in to comment.