Add new column as format yyyy-mm in pandas Get link Facebook X Pinterest Email Other Apps August 11, 2022 callplan['YM'] = callplan['Visited Date'].dt.strftime('%Y-%m') Get link Facebook X Pinterest Email Other Apps Comments
Read Parquet file in pandas August 12, 2022 callplan_202205 = pd.read_parquet('../../ReportMart/Call_Plan/data/call_plan_202205.parquet', engine='pyarrow') Read more
WHERE or IF function in Numpy August 12, 2022 Script union['CH'] = np.where(union['Invoice Type'] == 'Normal Sales', union['Channel Name'],'Wedding & Function') Explanation IF "Invoice Type" = "Normal Sales" then union['CH'] = union['Channel Name'] Else union['CH'] = "Wedding & Function" Read more
Comments
Post a Comment