import pandas as pd data = pd.read_csv('../input/udemy-courses/udemy_courses.csv') x = pd.Series([int(i[:4]) for i in data.published_timestamp]) xx = pd.DataFrame(x,columns=['published_year']) z = pd.Series([int(i[5:7]) for i in data.published_timestamp]) zz = pd.DataFrame(z,columns=['published_day']) data = pd.concat([data,xx,zz],axis=1) data
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter