# Sample DataFrame data = { 'text': ['siterip k2s new example', 'another text', 'siterip k2s new here'] } df = pd.DataFrame(data)
# Create a dynamic column df['dynamic_column'] = df['text'].apply(lambda x: 'Yes' if 'siterip k2s new' in x else 'No')
data.forEach(item => { item.dynamicColumn = item.text.includes('siterip k2s new') ? 'Yes' : 'No'; });
const data = [ { text: 'siterip k2s new example' }, { text: 'another text' }, { text: 'siterip k2s new here' } ];
Copyright © 2011-2025 冰楓論壇, All rights reserved
免責聲明:本網站是以即時上載留言的方式運作,本站對所有留言的真實性、完整性及立場等,不負任何法律責任。
而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。