# Create a dynamic column df['dynamic_column'] = df['text'].apply(lambda x: 'Yes' if 'siterip k2s new' in x else 'No')
const data = [ { text: 'siterip k2s new example' }, { text: 'another text' }, { text: 'siterip k2s new here' } ]; siterip k2s new
Let's assume you have a DataFrame and you want to create a new column dynamically based on some conditions related to "siterip k2s new". # Create a dynamic column df['dynamic_column'] = df['text']
data.forEach(item => { item.dynamicColumn = item.text.includes('siterip k2s new') ? 'Yes' : 'No'; }); { text: 'another text' }
import pandas as pd
Please confirm you want to block this member.
You will no longer be able to:
Please note: This action will also remove this member from your connections and send a report to the site admin. Please allow a few minutes for this process to complete.