Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/machow/funneljoin-py
A python port of funneljoin, by Emily Robinson
https://github.com/machow/funneljoin-py
Last synced: 3 months ago
JSON representation
A python port of funneljoin, by Emily Robinson
- Host: GitHub
- URL: https://github.com/machow/funneljoin-py
- Owner: machow
- License: mit
- Created: 2020-08-25T21:39:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T13:04:05.000Z (over 4 years ago)
- Last Synced: 2024-09-14T06:55:55.749Z (4 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
# funneljoin-py
A python port of funneljoin, by Emily Robinson## Examples
```{python tags=c("hide-input")}
# NOTE: this is for a nice github readmeimport pandas as pd
# DataFrame display --------
pd.set_option("display.max_rows", 12)
from IPython import get_ipython# special ipython function to get the html formatter
html_formatter = get_ipython().display_formatter.formatters['text/html']# here, we avoid the default df._repr_html_ method, since it inlines css
# (which makes github angry)
html_formatter.for_type(
pd.DataFrame,
lambda df: df.to_html(max_rows = pd.get_option("display.max_rows"), show_dimensions = True)
)
``````{python}
from funneljoin import after_join, get_example_datalanded, registered = get_example_data()
``````{python}
landed
``````{python}
registered
``````{python}
after_join(
landed, registered,
by_user = "user_id", by_time = "timestamp",
mode = "inner", type = "any-firstafter"
)
```