Skip to content

Date columns to Day, Month, Year, Hour, Minute, Second #8

Description

@BastinRobin

Date Split:

Now take a column with datestring and now generate columns in dataframe such as day, month, year, hour, minute, second

Method Structure:

.. code-block:: python

def date_split(df, col_name):
	
    ''' Your code goes here '''
    
    return dataframe

Parameters:

df : pandas dataframe
        - Enter the dataframe directly


    col_name: str
        - Enter the column name which consist of datetime string

Usage:

.. code-block:: python

    >> p = process()
    >> p.date_split(pd.DataFrame(), col_name='date')
    >> <pandas.dataframe>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions