Siterip K2s New

# Create a dynamic column df['dynamic_column'] = df['text'].apply(lambda x: 'Yes' if 'siterip k2s new' in x else 'No')

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". siterip k2s new

# 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']