print las._text

"""
Explanation: we'll use this LAS file as an example:
End of explanation
"""


lasio.ExcelConverter(las).write('example.xlsx')

"""
Explanation: Now use the ExcelConverter object to produce an Excel spreadsheet:
End of explanation
"""


import pandas

"""
Explanation: we can import this spreadsheet back into Python directly using pandas:
End of explanation
"""


xls_header_sheet = pandas.read_excel('example.xlsx', sheetname='Header')

xls_header_sheet

"""
Explanation: The spreadsheet has two sheets, one called "Header" with the header information from each section:
End of explanation
"""


xls_data_sheet = pandas.read_excel('example.xlsx', sheetname='Curves')

xls_data_sheet

"""
Explanation: and another called "Curves" containing the data itself:
End of explanation
"""


converter = lasio.ExcelConverter(las)

type(converter.workbook)

"""
Explanation: If you want to further modify the openpyxl.Workbook object, you can access it like so:
End of explanation
"""


