Questions tagged [dataframe]
The dataframe tag has no usage guidance.
3
questions
1
vote
2
answers
46
views
Split Pandas dataset column based on values (suffixes: string operation)
In Python using Pandas, I am splitting a dataset column into 4 lists based on the suffix of the values. For the 3 suffixes I am using a list comprehension then for the 4th one, a set operation that ...
1
vote
1
answer
350
views
Quickly create polars data frame from 2D ndarray
I am sampling from m normal distributions n times each, and storing the samples in a 2-dimensional ndarray. I then need to turn this into a polars dataframe as I need to add some string columns and do ...
4
votes
2
answers
168
views
Unstructured to Structured TOC
The following code tries to convert an unstructured TOC with bounding box layout data given by the output of pdftotext -bbox-layout -f 11 -l 13 new_book.pdf toc.html...