I have a class that gets initialized with a previously unknown number of arguments and I want it to be done on CLI using Python’s click package. My issue is that I can’t manage to initialize it and run a click command: Setting a defined number of arguments, like nargs=5, solves the issue of missing command but obligates me to
Tag: args
pandas, apply with args which are dataframe row entries
I have a pandas dataframe ‘df’ with two columns ‘A’ and ‘B’, I have a function with two arguments and I would like to apply it row-by-row to df using the ‘apply’ function but I get the error whats happening here, it seems it takes df[‘A’] as the whole series! not just the row entry from that series as required.