Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
markomanninen committed Apr 5, 2018
1 parent b84dc26 commit ca72510
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
11 changes: 4 additions & 7 deletions README
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
11 changes: 4 additions & 7 deletions README.md
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit ca72510

Please sign in to comment.