Skip to content

Commit

Permalink
2.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Anirudh Palaparthi committed Sep 1, 2021
1 parent 9d67866 commit 28ae492
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 18 deletions.
Binary file modified .DS_Store
Binary file not shown.
11 changes: 3 additions & 8 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pyostie.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: Pyostie
Version: 2.5.8
Version: 2.5.9
Summary: A python package to OCR data and extract text with insights too.
Home-page: https://github.com/anirudhpnbb/Pyostie
Author: Anirudh Palaparthi
Expand Down
8 changes: 4 additions & 4 deletions build/lib/pyostie/insights_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def generate_df(self):
self.data["top_plus_height"] = top_plus_height
self.data["left_plus_width"] = left_plus_width
self.data['topLeft'] = tuple(self.data[['left', 'top']].
apply(lambda x: ','.join(x.fillna('').map(int)), axis=1))
apply(lambda x: ','.join(x.fillna('').map(str)), axis=1))
self.data['bottomLeft'] = tuple(self.data[['left', 'top_plus_height']].
apply(lambda x: ','.join(x.fillna('').map(int)), axis=1))
apply(lambda x: ','.join(x.fillna('').map(str)), axis=1))
self.data['bottomRight'] = tuple(self.data[['left_plus_width', 'top_plus_height']].
apply(lambda x: ','.join(x.fillna('').map(int)), axis=1))
apply(lambda x: ','.join(x.fillna('').map(str)), axis=1))
self.data['topRight'] = tuple(self.data[['left_plus_width', 'top']].
apply(lambda x: ','.join(x.fillna('').map(int)), axis=1))
apply(lambda x: ','.join(x.fillna('').map(str)), axis=1))
# self.data['topLeft'] = self.data['topLeft'].str.strip(',')
# self.data['bottomLeft'] = self.data['bottomLeft'].str.strip(',')
# self.data['bottomRight'] = self.data['bottomRight'].str.strip(',')
Expand Down
Binary file removed dist/Pyostie-2.5.8.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added dist/Pyostie-2.5.9.tar.gz
Binary file not shown.
8 changes: 4 additions & 4 deletions pyostie/insights_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def generate_df(self):
self.data["top_plus_height"] = top_plus_height
self.data["left_plus_width"] = left_plus_width
self.data['topLeft'] = tuple(self.data[['left', 'top']].
apply(lambda x: ','.join(x.fillna('').map(int)), axis=1))
apply(lambda x: ','.join(x.fillna('').map(str)), axis=1))
self.data['bottomLeft'] = tuple(self.data[['left', 'top_plus_height']].
apply(lambda x: ','.join(x.fillna('').map(int)), axis=1))
apply(lambda x: ','.join(x.fillna('').map(str)), axis=1))
self.data['bottomRight'] = tuple(self.data[['left_plus_width', 'top_plus_height']].
apply(lambda x: ','.join(x.fillna('').map(int)), axis=1))
apply(lambda x: ','.join(x.fillna('').map(str)), axis=1))
self.data['topRight'] = tuple(self.data[['left_plus_width', 'top']].
apply(lambda x: ','.join(x.fillna('').map(int)), axis=1))
apply(lambda x: ','.join(x.fillna('').map(str)), axis=1))
# self.data['topLeft'] = self.data['topLeft'].str.strip(',')
# self.data['bottomLeft'] = self.data['bottomLeft'].str.strip(',')
# self.data['bottomRight'] = self.data['bottomRight'].str.strip(',')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name="Pyostie",

# version of the module
version="2.5.8",
version="2.5.9",

# Name of Author
author="Anirudh Palaparthi",
Expand Down

0 comments on commit 28ae492

Please sign in to comment.