question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using a column value for 'minimum_data' in label_maker.search()

See original GitHub issue

I would like to pass the date when a customer was created as an input for the minimum_data in label_maker.search(). I understand minimum_data would require a lower bound for the series (per customer, in this case).

The data structure then would go from e.g. Transaction1-NoEvent-NoEvent-Transaction2 to NoEvent (customer creation date)-NoEvent-Transaction1 …

It seems it is not possible to refer to an existing column that is part of the dataframe used to generate the labels when specifying minimum_data.

Motivation: I don’t want to start off with the first transaction on record but the time when we acquired the customer record. In a later stage I would want to add e.g. marketing activities on the customer level. The hypothesis would be that customers who transition more quickly from creating an account to purchasing a product are generally more eager to engage with the brand.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
S-UPcommented, Apr 19, 2021

That’s what I had in mind. Would be nice to see this addition.

0reactions
jeff-hernandezcommented, Nov 2, 2021

@S-UP this feature is available in the latest release 0.7.0. Sorry for the delay and thanks again for the feature request!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get minimum values in rows or columns with their index ...
1) Get row index label of minimum value in every column : Use idxmin() function to find the index/label of the minimum value...
Read more >
Get minimum values in rows or columns & their index position
In this article we will discuss how to find minimum values in rows & columns of a Dataframe and also their index position....
Read more >
Highlight the minimum value in each row
I'm doing a spreadsheet comparing prices from different companies for hundreds of products so I'll have about 10 columns and up to 1000...
Read more >
R - How can I color and label the max and min values points of ...
I'm using ggplot() and I want to make a scatter plot with the max and min values of E.N.E. colored in red and...
Read more >
Dynamic min and max data labels in a chart - YouTube
In this video, we look at how to highlight high and low values in an Excel chart using data labels and formulas. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found