Skip to content

Commit

Permalink
Stringify PosixPaths
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed May 30, 2018
1 parent 3befcde commit f0403bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion notebooks/IntroducingLda.ipynb
Expand Up @@ -195,7 +195,7 @@
},
"outputs": [],
"source": [
"meta = pd.concat([metadata.fname2metadata(path, pattern=pattern) for path in path_to_corpus.glob('*.txt')])\n",
"meta = pd.concat([metadata.fname2metadata(str(path), pattern=pattern) for path in path_to_corpus.glob('*.txt')])\n",
"meta[:5] # by adding '[:5]' to the variable, only the first 5 elements will be printed"
]
},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/IntroducingMallet.ipynb
Expand Up @@ -193,7 +193,7 @@
"metadata": {},
"outputs": [],
"source": [
"meta = pd.concat([metadata.fname2metadata(path, pattern=pattern) for path in path_to_corpus.glob('*.txt')])\n",
"meta = pd.concat([metadata.fname2metadata(str(path), pattern=pattern) for path in path_to_corpus.glob('*.txt')])\n",
"meta[:5] # by adding '[:5]' to the variable, only the first 5 elements will be printed"
]
},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Visualizations.ipynb
Expand Up @@ -31,7 +31,7 @@
"metadata": {},
"outputs": [],
"source": [
"meta = pd.concat([metadata.fname2metadata(path, pattern=pattern) for path in path_to_corpus.glob('*.txt')])\n",
"meta = pd.concat([metadata.fname2metadata(str(path), pattern=pattern) for path in path_to_corpus.glob('*.txt')])\n",
"meta[:5] # by adding '[:5]' to the variable, only the first 5 elements will be printed"
]
},
Expand Down

0 comments on commit f0403bc

Please sign in to comment.