wanted to replace values with "NaN" where percentage is greater than 100, in "ROE" column. Reading csv file. Following is the code, not sure how to assign values in 'missing' dataframe, please help
** ROE column in the dataset contains value like "25.00%", "130.00%", "50.00%". so while comparing, first need to convert values in the float by removing last character.
missing = pd.read_csv(local_path + "/Week4/Datasets_Week4/roemissing.csv")
print(missing)
for x in missing["ROE"]:
y = float(x[:-1])
if y>100:
print(x.index)