Metadata-Version: 2.1
Name: xlpandas
Version: 0.1.4
Summary: Read and write xlsx/xlst using pandas/openpyxl while preserving Excel formatting
Home-page: https://github.com/fgassert/xlpandas
Author: Francis Gassert
License: MIT
Description: # xlPandas
        
        Read and write Excel xlsx using pandas/openpyxl without destroying formatting.
        
        Sometimes you have a nicely formatted worksheet, but you'd like to work with it
        using [pandas](https://pypi.org/project/pandas/), or perhaps you want to write
        data to an Excel template.
        
        Pandas can read and write Excel files using `xlrd`, but treats them like csvs.
        xlPandas uses [openpyxl](https://pypi.org/project/openpyxl/) to access data
        while preserving template formatting, macros, and other worksheet attributes.
        
        ## Install
        
        `pip install xlpandas`
        
        ## Example
        
        ``` python
        
        import xlpandas as xpd
        
        # Read excel file
        df = xpd.read_file('template.xlsx', skiprows=2)
        print(df.columns)
        
        # Modify dataframe
        df['new_column'] = True
        
        # Access openpyxl worksheet
        sheet = df.to_sheet()
        sheet.cell(1,1).value = 'title'
        
        # From openpyxl worksheet
        df = xpd.xlDataFrame(sheet)
        
        # Write file
        df.to_file('out.xlsx')
        
        ```
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
