Skip to content

DataFrame constructor speed #621

@dieterv77

Description

@dieterv77

Hi, i was playing around with constructing DataFrame's from nested dicts, and noticed that things have gotten a bit slower since v0.6.1.

Here's some sample code i was playing with:

import time
import pandas

print pandas.version

data = dict((i,dict((j,float(j)) for j in xrange(100))) for i in xrange(5000))
t0 = time.time(); df = pandas.DataFrame(data); t1 = time.time(); print t1 - t0

With version 0.6.1, the printed time is about 0.21s on my machine, with a little help from git bisect,
i found that:

commit f3ca67d takes it from 0.21s to 0.44s
commit 9d65e8e takes it from 0.44s to 0.54s

It's possible that some of these were unavoidable considering they may have been necessary bugfixes, but i wanted to
see if anyone else is seeing this too.

environment info: 64bit ubuntu 11.10, python2.7, numpy 1.6.1, cython 0.15.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions