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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for RR-Custom-Python-Tools-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c48d5dae2a559f6333aecee9b3b33341d086985773db03e5b33905a956e5b8e |
|
MD5 | a08606980d4d58f858ae3c9a4f563605 |
|
BLAKE2b-256 | 1ac2059c14f2be7112e7025f634a87fe1e5774f5a6c0922534dc346095c5491d |
Close
Hashes for RR_Custom_Python_Tools-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6311650eeeae4355c76ed40b2ae578800d697e37bf5f500687c12b10934d366a |
|
MD5 | 8fe6af855a4dde9a00fff2c651cf5aed |
|
BLAKE2b-256 | 371482b98e81df05822e51c4bc56a6a0b16a81b313a32112109e3983ba88ffd5 |