How to convert OpenDocument spreadsheets to a pandas DataFrame?

前端 未结 11 1633
日久生厌
日久生厌 2020-12-23 19:40

The Python library pandas can read Excel spreadsheets and convert them to a pandas.DataFrame with pandas.read_excel(file) command. Under the hood,

11条回答
  •  抹茶落季
    2020-12-23 19:46

    I've had good luck with pandas read_clipboard. Selecting cells and then copy from excel or opendocument. In python run the following.

    import pandas as pd
    data = pd.read_clipboard()
    

    Pandas will do a good job based on the cells copied.

提交回复
热议问题