suffix

add suffix based on multiple conditions from string values in another column

add suffix based on multiple conditions from string values in another column Question: I would like to add a suffix to strings in one column when a condition is met in another column. If a value is present in "Market" column, "Symbol" column corresponding value is updated to include current ticker but I would like …

Total answers: 1

List with duplicated values and suffix

List with duplicated values and suffix Question: I have a list, a: a = [‘a’,’b’,’c’] and need to duplicate some values with the suffix _ind added this way (order is important): [‘a’, ‘a_ind’, ‘b’, ‘b_ind’, ‘c’, ‘c_ind’] I tried: b = [[x, x + ‘_ind’] for x in a] c = [item for sublist in …

Total answers: 6