Mar-30-2017, 07:01 PM
I hope you are all having a good. Why does the following program cause Python to crash (I'm using the Jupyter notebook):
df2=pd.DataFrame(data=df,index=df['Day of Week'],columns=df['Hour'])
df is a DataFrame already and I want it to have an index of the day of the week variable and columns for the hour variable.
df2=pd.DataFrame(data=df,index=df['Day of Week'],columns=df['Hour'])
df is a DataFrame already and I want it to have an index of the day of the week variable and columns for the hour variable.