i have 2 dataframes, one is base word and another is affixed word, how do i give base word input and output the affixed word??
import pandas as pd
# Membuat dataframe sederhana
df = pd.DataFrame({'nama': ['menghubung', 'mencinta', 'mengajar', 'mengoles','menyejajarkan']})
hasil_pencarian = df['nama'].str.contains('ajar')
# Menampilkan baris yang sesuai dengan hasil pencarian
print(df[hasil_pencarian])
this is wrong, it's just looking to find if the character is in the dataframe