You probably want to do
df['Normalized'] = np.where(df['Currency'] == '$', df['Budget'] * 0.78125, df['Budget'])
More Related Contents:
- Calculate average of every x rows in a table and create new table
- Python pandas: how to remove nan and -inf values
- Pandas conditional creation of a series/dataframe column
- How to provide a reproducible copy of your DataFrame with to_clipboard()
- Binning a column with Python Pandas
- String concatenation of two pandas columns
- Pandas read_csv low_memory and dtype options
- How can I split a column of tuples in a Pandas dataframe?
- replace() method not working on Pandas DataFrame
- Find column name in pandas that matches an array
- How to check if a value is in the list in selection from pandas data frame?
- Group duplicate column IDs in pandas dataframe
- Pandas finding local max and min
- SQL-like window functions in PANDAS: Row Numbering in Python Pandas Dataframe
- Ambiguity in Pandas Dataframe / Numpy Array “axis” definition
- Count number of words per row
- how do I calculate a rolling idxmax
- how to read certain columns from Excel using Pandas – Python
- which is faster for load: pickle or hdf5 in python
- vectorize conditional assignment in pandas dataframe
- How can I count the number of consecutive TRUEs in a DataFrame?
- Binning a column with pandas
- Create new column based on values from other columns / apply a function of multiple columns, row-wise in Pandas
- Filling in date gaps in MultiIndex Pandas Dataframe
- append dictionary to data frame
- Store numpy.array in cells of a Pandas.DataFrame
- Filtering pandas dataframe with multiple Boolean columns
- AttributeError: module ‘numpy’ has no attribute ‘__version__’
- How to convert string representation of dictionary in Pandas DataFrame to a new columns?
- Confusion about pandas copy of slice of dataframe warning