Skip to content

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

@BastinRobin

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>

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions