I'm new to pandas and was able to kill my laptop using it.
I'm using RAND's data from: https://www.rand.org/nsrd/projects/terrorism-incidents/about.html
After loading the data from a csv, I cleaned and tweaked the date column:
data["Date"]= pd.to_datetime(data["Date"])
data.head()
For some reason when I try to get some columns' transpose into a new df, it kills the CPU. Here's my code:
x,y,z = data["Date"].transpose(), data["Fatalities"].transpose(),data["Injuries"].transpose()
ploting_data = pd.DataFrame(x,y,z) #<- this line kills my Mac.
I know that the data is a transpose of a series, but that doesn't help much, perhaps I'm missing something. Thanks.