Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: DataFrame.__getitem__ returns Series for sparse column #23561

Merged
merged 1 commit into from
Nov 11, 2018

Commits on Nov 8, 2018

  1. API: DataFrame.__getitem__ returns Series for sparse column

    Breaking API change for
    
    ```python
    In [1]: import pandas as pd
    
    In [2]: df = pd.DataFrame({"A": pd.SparseSeries([1, 0])})
    
    In [3]: type(df['A'])
    Out[3]: pandas.core.sparse.series.SparseSeries
    ```
    
    Now Out[3] is a Series.
    
    closes pandas-dev#23559
    TomAugspurger committed Nov 8, 2018
    Configuration menu
    Copy the full SHA
    17ab4f5 View commit details
    Browse the repository at this point in the history