export-to-excel

What is the problem with the pandas to csv in my code?

[亡魂溺海] 提交于 2020-08-10 23:40:10
问题 I am running this code for a project I am doing for fun to find patterns in Disneyland wait times: import pandas as pd import numpy as np import matplotlib.pyplot as plt df_pirates_all = pd.read_csv( "https://cdn.touringplans.com/datasets/pirates_of_caribbean_dlr.csv",usecols=['date','datetime','SPOSTMIN'], parse_dates=['date', 'datetime'], ) df_pirates_all['ride'] = 'pirates' df_pirates_all['open'] = ~((df_pirates_all['SPOSTMIN'] == -999)) df_pirates = df_pirates_all.set_index('datetime')