We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a40360 commit d22149dCopy full SHA for d22149d
streamz/dataframe/utils.py
@@ -2,10 +2,10 @@ def is_dataframe_like(df):
2
""" Looks like a Pandas DataFrame. ** Borrowed from dask.dataframe.utils ** """
3
typ = type(df)
4
return (all(hasattr(typ, name)
5
- for name in ('groupby', 'head', 'merge', 'mean')
+ for name in ('groupby', 'head', 'merge', 'mean'))
6
and all(hasattr(df, name) for name in ('dtypes',))
7
and not any(hasattr(typ, name)
8
- for name in ('value_counts', 'dtype'))))
+ for name in ('value_counts', 'dtype')))
9
10
11
def is_series_like(s):
0 commit comments