From ca725107ac1756f8879585ee8d709491ac111cca Mon Sep 17 00:00:00 2001 From: Marko Manninen Date: Thu, 5 Apr 2018 22:33:06 +0300 Subject: [PATCH] updates --- README | 11 ++++------- README.md | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/README b/README index 67994e6..7364f9a 100644 --- a/README +++ b/README @@ -18,11 +18,9 @@ Use from Python/IPython console: a = words[words['Isopsephy'] == 1697] a = a[a['Chars'] == 9] a = a[a['Mutes'] == 5] - a = a[a.apply(lambda x: len(x['Syllables'][0]) == 2 and \ - len(x['Syllables'][1]) == 2 and \ - len(x['Syllables'][2]) == 2, axis=1)] - # output words ordered alphabetically - a.sort_index() + a[a.apply(lambda x: len(x['Syllables'][0]) == 2 and \ + len(x['Syllables'][1]) == 2 and \ + len(x['Syllables'][2]) == 2, axis=1)] ``` Output: @@ -38,8 +36,7 @@ Output: ```python # get words containing ΑΜΦΕΚΑΛΥ stem word - b = words.filter(like="ΑΜΦΕΚΑΛΥ", axis=0) - b.sort_index() + words.filter(like="ΑΜΦΕΚΑΛΥ", axis=0) ``` Output: diff --git a/README.md b/README.md index 67994e6..7364f9a 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,9 @@ Use from Python/IPython console: a = words[words['Isopsephy'] == 1697] a = a[a['Chars'] == 9] a = a[a['Mutes'] == 5] - a = a[a.apply(lambda x: len(x['Syllables'][0]) == 2 and \ - len(x['Syllables'][1]) == 2 and \ - len(x['Syllables'][2]) == 2, axis=1)] - # output words ordered alphabetically - a.sort_index() + a[a.apply(lambda x: len(x['Syllables'][0]) == 2 and \ + len(x['Syllables'][1]) == 2 and \ + len(x['Syllables'][2]) == 2, axis=1)] ``` Output: @@ -38,8 +36,7 @@ Output: ```python # get words containing ΑΜΦΕΚΑΛΥ stem word - b = words.filter(like="ΑΜΦΕΚΑΛΥ", axis=0) - b.sort_index() + words.filter(like="ΑΜΦΕΚΑΛΥ", axis=0) ``` Output: