简体   繁体   中英

I am gettting an error when using pandas parse_date

I am running the following python code block using pandas parse_date but get a syntax error, since I am still struggling with finding the proper package for my atom editor to help me with syntax error detection I would appreciate any help I can get on this.

marketing = pd.read_csv.('/Users/name/Folder/marketing.csv', parse_dates=['date_served', 'date_subscribed', 'date_caneled'])

Take out the dot before the first paren.

marketing = pd.read_csv.('/Users/name/Folder/marketing.csv', parse_dates=['date_served', 'date_subscribed', 'date_caneled'])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM