Skip to content

Commit

Permalink
Merge pull request #140 from dameyerdave/pandas_2.0_compatibility
Browse files Browse the repository at this point in the history
fix: stay compatible with pandas >=2.0
  • Loading branch information
susannasiebert authored Apr 18, 2024
2 parents 65ff07f + e449ab7 commit db39767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion civicpy/civic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@ def search_variants_by_coordinates(coordinate_query, search_mode='any'):
start_ct_idx = start_idx[:right_idx].index
left_idx = stop_idx.searchsorted(start)
stop_ct_idx = stop_idx[left_idx:].index
match_idx = chr_ct_idx & start_ct_idx & stop_ct_idx
match_idx = list(set(chr_ct_idx) & set(start_ct_idx) & set(stop_ct_idx))
m_df = ct.loc[match_idx, ]
if search_mode == 'any':
var_digests = m_df.v_hash.to_list()
Expand Down

0 comments on commit db39767

Please sign in to comment.