Skip to main content

Optimised way to write in Excel files.

Project description

Excel Write

Optimised way to write in excel files.

Developed by Dipan Nanda (c) 2023

Example of Usage

write_in_excel

from excel_write import write_in_excel

write_in_excel(df, location, sheet)
"""
:param DataFrame df: The DataFrame used to export to Excel
:param str sheet: The name that is to be assigned to the file
:param str location: Location where the file is to be created
:param bool index: including index or not
"""

auto_adjust_excel_width

from excel_write import auto_adjust_excel_width

auto_adjust_column_width_index(df, writer, sheet_name="MySheet", margin=3)

"""
:param DataFrame df: The DataFrame used to export the Excel
:param pd.ExcelWriter writer: The pandas exporter with engine="xlsxwriter"
:param str sheet_name: The name of the sheet
:param int margin: How many extra space (beyond the maximum size of the string)
:param int length_factor: The factor to apply to the character length to obtain the 
column width
:param int decimals: The number of decimal places to assume for floats: Should be the
same as the number of decimals displayed in the Excel
:param bool index: Whether the DataFrame's index is inserted as a separate column (if
index=False in df.to_xlsx() set index=False here!)
"""

Changelog

Go here to checkout the complete changelog.

License

This is under MIT License

License: MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

excel-write-1.0.5.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

excel_write-1.0.5-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file excel-write-1.0.5.tar.gz.

File metadata

  • Download URL: excel-write-1.0.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for excel-write-1.0.5.tar.gz
Algorithm Hash digest
SHA256 85fa0a9194e426fefeaa6aab4999bd9cfcd4dbf0a38e46ae458c10d9dde239b9
MD5 f445d9f4cd607ab79b572c8803b3c620
BLAKE2b-256 dce4564ac106b15576a9dc15cbfd2604f852fd39a315c2963cffb94d7baf60f7

See more details on using hashes here.

File details

Details for the file excel_write-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: excel_write-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for excel_write-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fb8f8d590f7098f88749b39ec1bbfc60d08a7c3270cd01e8130f43356e6ee901
MD5 e2643aae885131558f000b4e1f11c51e
BLAKE2b-256 d1aeab4e5d7ce8e5d2853532b324497c5c7c18983d738cf8ca185af94c2e3ac6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page