LoginSignup
0
1

More than 5 years have passed since last update.

python pandas DataFrameを使用して現在のDirectoryのipynbファイルを抽出(文字列の部分一致)

Last updated at Posted at 2019-03-20
import os
import pandas as pd

df = pd.DataFrame(os.listdir())

df_files = df[df[0].str.endswith('.ipynb')]
df_files
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1