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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b576c89aa6a2b1e0151385554c06280e240eff58f5a133afac870fe44f6ca382 |
|
MD5 | 8b8d0116d198d997b0809a948aba2f4b |
|
BLAKE2b-256 | 98212bbd391758a58ca25cef118605ee908d3bdd994eaf3f7db9f16521368d3c |
Close
Hashes for RR_Custom_Python_Tools-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dec50e21998faf370e342ea8056f827fdb59d40033763a07ee792dd420fae2d9 |
|
MD5 | ec8f90f9a2f104018f950414779b60ef |
|
BLAKE2b-256 | 9a29b4ac646dbb36482cb49b4656a225e75731c960406d80c7fad9c6370e7767 |