Hacker News new | past | comments | ask | show | jobs | submit login

if i understand you correctly - you can - like this:

import pandas as pd

df = pd.DataFrame() ...loads data...

def modify_column(x): """ modify x"""" return modified_x

df['column_name'].apply(lambda x: modify_column(x))




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: