Skip to content

Commit

Permalink
remove pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlya committed Jan 12, 2024
1 parent 87a46ea commit 1ee0b91
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions adjustText/arrops.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Code copied from bioframe.core.arrops
import numpy as np
import pandas as pd
import warnings

def arange_multi(starts, stops=None, lengths=None):
"""
Expand Down Expand Up @@ -78,14 +76,7 @@ def overlap_intervals(starts1, ends1, starts2, ends2, closed=False, sort=False):
"""

for vec in [starts1, ends1, starts2, ends2]:
if isinstance(vec, pd.Series):
warnings.warn(
"One of the inputs is provided as pandas.Series and its index "
"will be ignored.",
SyntaxWarning,
)

# Convert to numpy arrays
starts1 = np.asarray(starts1)
ends1 = np.asarray(ends1)
starts2 = np.asarray(starts2)
Expand Down

0 comments on commit 1ee0b91

Please sign in to comment.