All Questions
Tagged with pandas python-3.x
155 questions
2
votes
1
answer
240
views
Python using generators with Excelwriter - Performance
I'm looking to understand if my code has an obvious blockage or performance pain point that will cause it to operate slower or use more memory than it should.
The current Excelfile i am processing ...
3
votes
1
answer
290
views
Transferring dataframe columns into dataframe rows
I have the following data:
...
1
vote
1
answer
410
views
Protecting functions from empty DataFrames
Pandas likes to throw cryptic errors when you feed its functions with empty DataFrames saying nothing that would help you to identify the root cause. In order to ...
2
votes
2
answers
2k
views
Mapping pandas' Series to dataclasses
I've got something really simple this time where I'm mapping pandas' Series to dataclasses with a oneliner helper function (as ...
5
votes
1
answer
206
views
constraint solving graduation using HTML Parsing, pandas, and z3
not sure if this project fits on code review, but my code is getting extremely messy, and would love some tips to clean it up!
Overview
The project is designed to take in an HTML file (a degree audit),...
1
vote
0
answers
54
views
BoundingBox dataclass implementation with cupy, cudf, and nvector
The dataset I'm working with is rather large so I've been experimenting with cudf and cupy. Here you can find instructions for ...
2
votes
0
answers
244
views
Do Mann-Kendall and Pettitt tests on each CSV file
Here is a function that will take each text file in a directory, do the Mann-Kendall and Pettitt tests, and then write the output to a text file. Would you please suggest me improve the code to make ...
-1
votes
1
answer
78
views
Forecast experimental results based on temperature [closed]
I would really welcome any hints on making this code more concise please.
In this example we have some experiment results.
For each planned experiment We have predicted results based on 4 temperatures ...
0
votes
2
answers
90
views
Speeding up row insertion to Pandas DataFrames [closed]
I have the below code that seems to be taking a while to run over time.
...
2
votes
2
answers
140
views
Regex and pandas to read forecast sky condition string
DataFrame methods to parse the sky condition from a terminal aerodrome forecast.
A line in a taf can report zero-eight cloud layers. Cloud layers are required in predominate lines, and optional in ...
2
votes
1
answer
145
views
Regex pattern matching to generate pandas multi index
Mostly just looking for a review of my regex and implementation of capture groups. its something I've been working to improve.
The indexes have somewhat of a pattern to them of being....
...
4
votes
2
answers
356
views
Read a file format with mixed CSV and non-CSV content
I have a file format that I need to read which contains blocks of CSV data interspersed by non-CSV (or at least, inconsistent CSV) lines. Other than the very first line of the file (which has comma-...
1
vote
1
answer
87
views
Stacking Z axis on multiple [1440x720] DataFrames (X, Y)
Each datum represents a point in a 1440x720 image of the globe, The values are 0-9. Each new layer is of a higher elevation. I need to structure a DataFrame in a ...
2
votes
1
answer
96
views
dataframe mean outliers to NaN to derive a higher quality mean for area,speed,azimuth
I have some data that represents the area, speed(meters per second), and azimuth(rads) of a polygon. The objective is to determine the mean for each set of parameters. With that mean value, apply a ...
3
votes
0
answers
107
views
Scraping housing dataset row by row from Estate Agent's website
I have written web scraping code with selenium with python3 for a dynamic site (it was my first project that is why I started with selenium). In my code I extracted the values and created DataFrame.
...