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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a23b506cc5497c181e3a418642fdbc87aff52caaa61e899f633c1f1a71d68882 |
|
MD5 | 475bfb14ed42e518e1c6d7ea764525fd |
|
BLAKE2b-256 | 9dcfbea3d5a37eef71a27b9830213a6964df915b698a2a690db30b407a3f4a38 |
Close
Hashes for RR_Custom_Python_Tools-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a94bb1b6ed0a2d1f14a46f9674dc41695f0c40d554ef874ad7f19e35ff89e46 |
|
MD5 | fd1847290a662303b7056766b8e89122 |
|
BLAKE2b-256 | 200e247802736c44a80357de65d7d6bdcb6c5a97a6cfbc8d07faa2ea90d1f4a7 |