pythonpandassframe

How to load sframe format file in pandas?


Is there any way to directly open .sframe extension file in pandas. Like an easy way

df = pd.read_csv('people.sframe')

Thank you.


Solution

  • No, you can't import sframe files directly with Pandas. Rather you can use a free python library named sframe:

    import sframe
    import pandas as pd
    
    sf = sframe.SFrame('people.sframe')
    

    Then you can convert it to a pandas DataFrame using:

    df = sf.to_dataframe()