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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae53a88a9596d577a1ff10fca305257f463337fe086aee21649811108a34eba6 |
|
MD5 | c64a57c592b399b5d5c00e8fd418c13b |
|
BLAKE2b-256 | db514854650994dad87eb788c7abaabd11ebbb4129c3df3b6e0e6ab62fa85557 |
Close
Hashes for RR_Custom_Python_Tools-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3af7a5531c89ce7a96a2ca298cac335a70c6f7d36a0178ed5c364bda38e87e3 |
|
MD5 | 9acf24195579fcb3b7d9381afe090057 |
|
BLAKE2b-256 | b023455ba4adafd2df83490f207fbcacf9fadb17b09301a805ab49eb176b6700 |