diff options
| author | Alex Schofield <git@ajschof.me> | 2026-05-04 20:40:33 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2026-05-04 20:40:33 +0100 |
| commit | 683d05d4f77d1ddf0d753c627610aed0f1a4eaae (patch) | |
| tree | 038f9f26646ac2d9228b116c424ef13457228ee8 /fnme | |
| parent | 46a79b467f580df24ac508ad6dbc37cffcf4b7cc (diff) | |
| download | fuelnearme-683d05d4f77d1ddf0d753c627610aed0f1a4eaae.tar.gz fuelnearme-683d05d4f77d1ddf0d753c627610aed0f1a4eaae.zip | |
rename filter_df() to process_stations() for clarity
Diffstat (limited to 'fnme')
| -rw-r--r-- | fnme/cli.py | 4 | ||||
| -rw-r--r-- | fnme/station.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fnme/cli.py b/fnme/cli.py index d9ef508..385af76 100644 --- a/fnme/cli.py +++ b/fnme/cli.py @@ -7,7 +7,7 @@ from tabulate import tabulate from fnme.constants import SORT_KV from fnme.data import get_latest_data from fnme.geo import get_location -from fnme.station import filter_df, sort_stations +from fnme.station import process_stations, sort_stations def parse_args() -> argparse.Namespace: @@ -49,7 +49,7 @@ def main(): print(f"Last updated: {last_modified}") - df_filtered = filter_df(df, args, location) + df_filtered = process_stations(df, args, location) sorted_stations_list = sort_stations(df_filtered, args.sort) diff --git a/fnme/station.py b/fnme/station.py index c971173..6cfc5d1 100644 --- a/fnme/station.py +++ b/fnme/station.py @@ -8,7 +8,7 @@ import pandas as pd from fnme.constants import SORT_KV -def filter_df( +def process_stations( dframe: pd.DataFrame, arguments: argparse.Namespace, loc: Tuple[float, float] ) -> List[Dict[str, Any]]: |
