Johan Nilssons Lifestream

initialize pandas dataframe with None

I am having an hard time to create a DataFrame with None values. To do so I execute several steps, but I believe that I can get the same results using a pandas' function...

mydata = []
mydata.append([None, None, None, None])
mydata = np.array(mydata)
mydata = pd.DataFrame(mydata, columns='Start','End','Duration'])   

Is there a command to get the same results?

via Stack Overflow

blog comments powered by Disqus
Get the source for phplifestream at Github