aboutsummaryrefslogtreecommitdiffstats
path: root/fnme
diff options
context:
space:
mode:
Diffstat (limited to 'fnme')
-rw-r--r--fnme/cli.py4
-rw-r--r--fnme/station.py2
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]]:
git.ajschof.me — hosted by ajschofield — powered by cgit