Skip to main content

Strip a spreadsheet of extra spaces and blank-celled rows

Project description

strip-spreadsheet

This tool is for working with spreadsheets. It cleans the spreadsheet off of any rows that have blank data in them and removes extra-spaces.

Installation

This is OS independent, meaning it won't need a specific Os to run on.

You can install the strip-spreadsheet package simply by running:

pip install strip-spreadsheet

Sample Code

from strip_spreadsheet import clean_sheet


# open the dirty sheet as a readable file
with open('x.csv', 'r') as dirty_sheet:
    # put all the rows in the sheet in a list
    unclean_sheet = dirty_sheet.readlines()

    # open the file wanna save the cleaned sheet to
    with open('x_cleaned.csv', 'w') as cleaned_up_sheet:
        # clean the unclean sheet and write the output to the new file we created
        cleaned_up_sheet.writelines(clean_sheet(unclean_sheet))

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

strip-spreadsheet-1.0.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

strip_spreadsheet-1.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file strip-spreadsheet-1.0.0.tar.gz.

File metadata

  • Download URL: strip-spreadsheet-1.0.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for strip-spreadsheet-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9724e5aa4b7047014912799b42201ff13baa1cb28ffb5f433ccd799d17c3dc75
MD5 14ffd80ae37d8701cc1e71aa96c69255
BLAKE2b-256 79d88687fd0c66ddccc6108ae8e73b237adcf9fb82c14175c5e1f66cd68344fe

See more details on using hashes here.

File details

Details for the file strip_spreadsheet-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: strip_spreadsheet-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for strip_spreadsheet-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4196010921059faf4dd780e43990f9445fe7d245c740c00efbeae2ba0f313be1
MD5 19e693d4bc5ac47cee240ab4225282ec
BLAKE2b-256 652b93d3c9812119e4af80aaa0a1259a39841b74b55bb14c8ce1c53d22355504

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