Skip to content

BUG 0.20.0rc1: Empty series for var/std for frame with non-numeric columns #16116

Closed
@jcrist

Description

@jcrist
In [1]: import pandas as pd

In [2]: pd.__version__
Out[2]: '0.20.0rc1'

In [3]: df = pd.DataFrame({'int': [1, 2, 3, 4],
   ...:                    'float': [1., 2., 3., 4.],
   ...:                    'str': ['a', 'b', 'c', 'd']})

In [4]: df.mean()
Out[4]:
float    2.5
int      2.5
dtype: float64

In [5]: df.std()
Out[5]:
Series([], dtype: float64)

In [6]: df.var()
Out[6]:
Series([], dtype: float64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugRegressionFunctionality that used to work in a prior pandas version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions