New answers tagged pandas
1
vote
Optimizing DataFrame iteration when generating large hierarchical text files
Long story short, use more Pandas and use fewer lists and classes. Whereas - given the current number of blocks and registries - representing the subframes as separate objects isn't a big deal, it isn'...
1
vote
Optimizing DataFrame iteration when generating large hierarchical text files
consistent naming
There is almost nothing to the Block class,
yet we wind up with this:
...
1
vote
Optimizing DataFrame iteration when generating large hierarchical text files
Here are some minor coding style suggestions.
Simpler
When I run the code, I see output like:
Time take to write sped (in seconds): 0.9321348667144775
You could ...
Top 50 recent answers are included
Related Tags
pandas × 608python × 599
python-3.x × 155
performance × 148
numpy × 85
csv × 42
beginner × 34
datetime × 24
matplotlib × 24
statistics × 20
excel × 19
machine-learning × 19
python-2.x × 18
web-scraping × 16
time-limit-exceeded × 13
beautifulsoup × 13
hash-map × 12
data-visualization × 12
finance × 11
strings × 10
parsing × 10
regex × 10
geospatial × 10
object-oriented × 9
data-mining × 9