Upload 3 files
Browse filesFiles changed (4)
134 unmodified lines135136137138134 unmodified linesDanbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0222_testv3.exe filter=lfs diff=lfs merge=lfs -textNAIA_0224_testv1.exe filter=lfs diff=lfs merge=lfs -textDanbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0226_testv1.exe filter=lfs diff=lfs merge=lfs -textDanbooru[[:space:]]Prompt[[:space:]]Selector/TEST2024/NAIA_0228_testv2.exe filter=lfs diff=lfs merge=lfs -text123version https://git-lfs.github.com/spec/v1oid sha256:dcf08a1a57c417ff09cec03b41545f9200ef30c3ede7f440be8222ce1da09cf1size 85480934312345678163 unmodified lines1721731741731751761771787 unmodified lines186187188187189190191192import pandas as pdimport re
pd.options.mode.chained_assignment = None
# ๋ชจ๋ ํค์๋๋ฅผ ํฌํจํ๋ ํ๋ง ํํฐ๋งํ๋ ํจ์def filter_rows_containing_all_keywords(df, keywords): special_chars = r".^$*+?{}[]\|()"163 unmodified lines ndf = matched_rows[matched_rows[column].str.contains(keyword, na=False, regex=True)] else: ndf = matched_rows[matched_rows[column].str.contains(keyword, na=False)] print(keyword, len(matched_rows), len(ndf)) #print(keyword, len(matched_rows), len(ndf)) if not ndf.empty: ndfs.append(ndf.copy()) del(ndf)7 unmodified lines if not matched_rows.empty: results = pd.concat([results, matched_rows]) del[matched_rows] print(results) #print(results) del[[df]] results = results.drop_duplicates(subset=['general']) df = results.copy().gitattributes+1
Danbooru Prompt Selector/TEST2024/NAIA_0228_testv2.exeAdded+3
Danbooru Prompt Selector/TEST2024/NAIA_0228_testv2.pyAdded
Danbooru Prompt Selector/TEST2024/NAIA_search.py+4-2