Skip to main content

A library for cleaning and parsing addresses.

Project description

CanAddress

CanAddress is a Python library for cleaning and parsing addresses. It standardizes addresses by converting them to a consistent format and splitting them into components such as street number, street name, city, province/state, and postal code.

Features

  • Clean and standardize addresses
  • Split addresses into components
  • Easily integrate with pandas DataFrames

Installation

You can install CanAddress using pip:

pip install canaddress

Usage

Here's a basic example of how to use CanAddress:

import pandas as pd
from canaddress import AddressParser

# Sample data
    data = {
        'Property_Address': [
            '1801  3077 WESTON ROAD, TORONTO, ONTARIO M9M3A1',
            '711  4673 JANE STREET, TORONTO, ONTARIO M3N2L1',
            '105  55 NEPTUNE DRIVE, TORONTO, ONTARIO M6A1X2',
            '104  5949 YONGE STREET, TORONTO, ONTARIO M2M3V8'
        ]
    }
df = pd.DataFrame(data)

# Initialize the AddressParser
parser = AddressParser(df, 'Property_Address')

# Clean and process the data
parser.clean_and_process_data()

# Display the cleaned and processed data
print(parser.display_data())

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Author

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

canaddress-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

canaddress-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file canaddress-0.1.2.tar.gz.

File metadata

  • Download URL: canaddress-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for canaddress-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5603e565931faaf3ef67d026825dcb65898d12cbe85250a7c8331e8c763607dc
MD5 09f7cef1f49994e6b8e22d64e435b879
BLAKE2b-256 a6663c4bdf58194e986f792534774dc4ae71863c0394ca8b62c95acba0b6ef2f

See more details on using hashes here.

File details

Details for the file canaddress-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: canaddress-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for canaddress-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71acbb4c691f86aad5b7ee7f647f5bbecaebb958a80f22ad6f2d08adf031a194
MD5 b4778e68618985085d195925ed9895e1
BLAKE2b-256 b2b8e4514af0484c3af9fd3f3593ec1be5ae962d7a52fafaa027ae8816d5eee0

See more details on using hashes here.

Supported by

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