Skip to content

Commit

Permalink
Fix call to .apply(str.strip)
Browse files Browse the repository at this point in the history
Now uses pd.Series.str.strip()
  • Loading branch information
jsvine committed Feb 28, 2016
1 parent fd79cc8 commit e213f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdfplumber/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def detect_gutters(chars, min_width=5):
using_pandas = isinstance(chars, pd.DataFrame)
if not using_pandas:
chars = pd.DataFrame(chars)
nonblank = chars[chars["text"].apply(str.strip) != ""]
nonblank = chars[chars["text"].str.strip() != ""]
x0s = nonblank["x0"].value_counts()
x1s = nonblank["x1"].value_counts()
totals = pd.DataFrame({
Expand Down

0 comments on commit e213f0c

Please sign in to comment.