Skip to content

Tag: pandas

Pickle data not loading

Here I the data I try to save as a “pickle file” Then in a separate script i open it: It seems to run smoothly, however the only thing that appears in my variable explorer is a Buffered Reader Object. Answer pkl.load returns the loaded object. Your code immediately discards it. You should assign i…

Fill np.nan with values based on other columns

I try to match the offer_id to the corresponding transaction. This is the dataset: The rule is that when the offer is viewed, the transaction belongs to this offer id. If the offer is reveived, but not viewed, the transaction does not belong to the offer id. I hope the time variable makes it clear. This is th…