I have 4 columns in CSV and I want to set CSV as parameter to a function in python. The 'key' should be my first column in CSV.
df = pd.DataFrame({'Country': ['US','France','Germany'],'daycount':['Actual360','Actual365','ActaulFixed'],'frequency':['Annual','Semi','Quart'], 'calendar':['United','FRA','Ger'})
From the above data frame I want to set parameter to the following variables, based on 'Country' as key in the dataframe and it should populate the corresponding values in following variables. I need some function or loop through which I can populate values. These values will further used in next program.
day_count = Actual360
comp_frequency = Annual
gl_calendar = UnitedStates