I'm writing a function to draw plots of dataframes and I would like to name the plots according to the name of the dataframe passed to the function. The first line of the plotter function is:
def plotter(data):
Say the data frame to be passed is df1
, I'm wondering how could I get the string 'df1'
when calling plotter(data=df1)
?