-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Closed
Labels
IndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselvesInternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementationPerformanceMemory or execution speed performanceMemory or execution speed performance
Description
from SO
I'm guessing there's a lot of inference / checks along this path, but this is slower than I'd expect.
In [66]: df = pd.DataFrame(np.random.randint(0,1000, size=(10000, 1026)))
...: f = list(range(1024))
...:
In [67]: %time df[f] = df[f].astype(float)
Wall time: 10.4 s
Metadata
Metadata
Assignees
Labels
IndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselvesInternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementationPerformanceMemory or execution speed performanceMemory or execution speed performance