You can provide this column to fillna
(see docs), it will use those values on matching indexes to fill:
In [17]: df['Cat1'].fillna(df['Cat2'])
Out[17]:
0 cat
1 dog
2 cat
3 ant
Name: Cat1, dtype: object
More Related Contents:
- Pandas: filling missing values by mean in each group
- Pandas fill missing values in dataframe from another dataframe
- Python Pandas replace NaN in one column with value from corresponding row of second column
- How to Pandas fillna() with mode of column?
- How do I select rows from a DataFrame based on column values?
- Aggregation in Pandas
- Pandas Melt Function
- pandas DataFrame: replace nan values with average of columns
- add a string prefix to each value in a string column using Pandas
- Pretty Printing a pandas dataframe
- Pandas: Multiple columns into one column
- FailedPreconditionError: Attempting to use uninitialized in Tensorflow
- re.sub erroring with “Expected string or bytes-like object”
- Pandas: Subindexing dataframes: Copies vs views
- pandas DataFrame output end of csv
- Pandas compare next row
- Pandas sparse dataFrame to sparse matrix, without generating a dense matrix in memory
- Dictionary column in pandas dataframe
- How do I split a string into several columns in a dataframe with pandas Python?
- Convert a columns of string to list in pandas
- Loading multiple csv files of a folder into one dataframe
- Pandas: combining header rows of a multiIndex DataFrame
- Python Pandas: Get index of rows where column matches certain value
- pandas groupby and join lists
- Row-wise average for a subset of columns with missing values
- Pandas and Matplotlib – fill_between() vs datetime64
- How to solve import error for pandas?
- Dynamically filtering a pandas dataframe
- Using regex matched groups in pandas dataframe replace function
- How to get number of groups in a groupby object in pandas?