I have a column in my dataframe (that is not used in rfm analysis) like as below
However, once I execute the below code
r = RFM(df_new, customer_id='unique_key', transaction_date='Date', amount='Revenue')
the same column market segment MC becomes like as below. I verified multiple times. Not sure why is this happening. Is there any shallow copy, deep copy etc stuff happening that is causing change in my input dataframe?
It is simply because of str() function. It gets NaN values converted to 'nan'.
Will add a feature in next release to use specified columns for analysis and keep/remove NaN records.
I have a column in my dataframe (that is not used in rfm analysis) like as below
However, once I execute the below code
r = RFM(df_new, customer_id='unique_key', transaction_date='Date', amount='Revenue')
the same column
market segment MC
becomes like as below. I verified multiple times. Not sure why is this happening. Is there any shallow copy, deep copy etc stuff happening that is causing change in my input dataframe?