From e0aec679f04494d457e698304d06b980c47671c0 Mon Sep 17 00:00:00 2001 From: Wilson Beebe Date: Thu, 18 Apr 2024 16:27:42 -0700 Subject: [PATCH] Yet another lint fix --- src/nested_pandas/nestedframe/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index 6e80200..f6ed0fe 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -1,12 +1,13 @@ # typing.Self and "|" union syntax don't exist in Python 3.9 from __future__ import annotations +from typing import List + import numpy as np import pandas as pd from pandas._libs import lib from pandas._typing import Any, AnyAll, Axis, IndexLabel from pandas.api.extensions import no_default -from typing import List from nested_pandas.series import packer from nested_pandas.series.dtype import NestedDtype @@ -316,7 +317,7 @@ def dropna( ) return new_df - def reduce(self, func, *args, **kwargs) -> NestedFrame: + def reduce(self, func, *args, **kwargs) -> NestedFrame: """ Takes a function and applies it to each top-level row of the NestedFrame.