time-link / timelink-py

Timelink Python Package
MIT License
3 stars 0 forks source link

Dataframe with people with a matching name #16

Closed joaquimrcarvalho closed 7 months ago

joaquimrcarvalho commented 8 months ago

Something exists in timelink.notebooks.pandas

def pname_to_df(
    name, db: TimelinkDatabase = None, session=None, similar=False, sql_echo=False
):
    """name_to_df return df of people with a matching name

    Args:
        name = name to search for
        db = database connection to use, either db or session must be specified
        session = session to use, either db or session must be specified
        similar = if true will strip particles and insert a wild card %
                between name components with an extra one at the end
    """