Skip to main content

Frequently used python methods/libraries.

Project description

Custom Python Library

Custom library for frequent used methods/libraries.

Installation

pip install RR-Custom-Python-Tools

License

GPLv3+

DateManagement Class

def timestamp_to_date(dataframe: pd.DataFrame) -> pd.DataFrame:

Static Method
Convert datetime columns in a dataframe to date type.

Parameters:
    dataframe (pd.DataFrame): The dataframe containing the datetime columns.

Returns:
    pd.DataFrame: The input dataframe with the datetime columns converted to date type.

def timestamp_to_date_column(column: str, dataframe: pd.DataFrame) -> pd.DataFrame:

Static Method
Convert a datetime column in a dataframe to date type.

Parameters:
    column (str): The name of the datetime column to convert.
    dataframe (pd.DataFrame): The dataframe containing the datetime column.

Returns:
    pd.DataFrame: The input dataframe with the datetime column converted to date type.

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

RR-Custom-Python-Tools-0.0.6.tar.gz (17.4 kB view hashes)

Uploaded Source

Built Distribution

RR_Custom_Python_Tools-0.0.6-py3-none-any.whl (16.5 kB view hashes)

Uploaded Python 3

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