import os
import pandas as pd
df = pd.DataFrame(os.listdir())
df_files = df[df[0].str.endswith('.ipynb')]
df_files
More than 5 years have passed since last update.
python pandas DataFrameを使用して現在のDirectoryのipynbファイルを抽出(文字列の部分一致)
Last updated at Posted at 2019-03-20
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
01