automated

This commit is contained in:
flipside-kellen 2022-07-14 15:13:46 -07:00
parent 43264daa2f
commit 8f8820d2f7
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ if(isRstudio) {
mints_from_me()
pull_from_metaboss()
how_rare_is_api()
# saves labels to '/rstudio-data/nft_labels/solana_nft_labels.csv'
compile()

View File

@ -644,8 +644,8 @@ def compile():
howrare_labels = read_csv(DATA_FOLDER, 'howrare_labels')
df = pd.concat([howrare_labels, single_update_auth_labels, mult_update_auth_labels])
df = df[ (df.collection != 'Nan') & (df.collection != 'nan') & (df.collection.notnull()) ]
df = df[ (df.mint_address != 'Nan') & (df.mint_address != 'nan') & (df.mint_address.notnull()) ]
df = df.drop_duplicates(subset=['mint_address'], keep='first')
print(len(df[df.collection == 'DegenTown']))
write_csv(DATA_FOLDER, 'solana_nft_labels', df[['mint_address','collection']])
# print('Loaded!')