Upload 3 files
Browse filesFiles changed (4)
134 unmodified lines135136137134 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 -text134 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 -text
123version https://git-lfs.github.com/spec/v1oid sha256:dcf08a1a57c417ff09cec03b41545f9200ef30c3ede7f440be8222ce1da09cf1size 854809343123456163 unmodified lines1701711721731741751767 unmodified lines184185186187188189190import pandas as pdimport re# λͺ¨λ ν€μλλ₯Ό ν¬ν¨νλ νλ§ νν°λ§νλ ν¨μdef filter_rows_containing_all_keywords(df, keywords):special_chars = r".^$*+?{}[]\|()"163 unmodified linesndf = 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))if not ndf.empty:ndfs.append(ndf.copy())del(ndf)7 unmodified linesif not matched_rows.empty:results = pd.concat([results, matched_rows])del[matched_rows]print(results)del[[df]]results = results.drop_duplicates(subset=['general'])df = results.copy()12345678163 unmodified lines1721731741751761771787 unmodified lines186187188189190191192import pandas as pdimport repd.options.mode.chained_assignment = None# λͺ¨λ ν€μλλ₯Ό ν¬ν¨νλ νλ§ νν°λ§νλ ν¨μdef filter_rows_containing_all_keywords(df, keywords):special_chars = r".^$*+?{}[]\|()"163 unmodified linesndf = 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))if not ndf.empty:ndfs.append(ndf.copy())del(ndf)7 unmodified linesif not matched_rows.empty:results = pd.concat([results, matched_rows])del[matched_rows]#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