So, I tried this and it worked pretty well:
dfTest['bar'] = dfTest.apply(lambda row : row['foo'].replace(str(row['date']), ''), axis=1)
More Related Contents:
- How do I select rows from a DataFrame based on column values?
- Filter pandas DataFrame by substring criteria
- Binning a column with Python Pandas
- Aggregation in Pandas
- Compare two DataFrames and output their differences side-by-side
- Constructing pandas DataFrame from values in variables gives “ValueError: If using all scalar values, you must pass an index”
- Can pandas automatically read dates from a CSV file?
- Selecting a row of pandas series/dataframe by integer index
- pandas dataframe str.contains() AND operation
- How do I find the closest values in a Pandas series to an input number?
- How do I count the NaN values in a column in pandas DataFrame?
- getting the index of a row in a pandas apply function
- How to flatten a pandas dataframe with some columns as json?
- Tilde sign in pandas DataFrame
- Drop columns whose name contains a specific string from pandas DataFrame
- Find the unique values in a column and then sort them
- how do I calculate a rolling idxmax
- Python Pandas How to assign groupby operation results back to columns in parent dataframe?
- Pandas won’t fillna() inplace
- python Pandas DataFrame copy(deep=False) vs copy(deep=True) vs ‘=’
- From password-protected Excel file to pandas DataFrame
- How can repetitive rows of data be collected in a single row in pandas?
- FastAPI is very slow in returning a large amount of JSON data
- Python pandas: how to remove nan and -inf values
- Filtering pandas dataframe with multiple Boolean columns
- Pandas: Incrementally count occurrences in a column
- Python: How to drop a row whose particular column is empty/NaN?
- Combine Pandas data frame column values into new column
- DataFrame object has no attribute append
- Python Pandas : pandas.to_datetime() is switching day & month when day is less than 13