Tag: parsing

59 votes
7 answers
1.6K views
How to parse freeform street/postal address out of text, and into components

We do business largely in the United States and are trying to improve user experience by combining all the add

avatar
Forrest
0 1 0 9
asked 07 September, 2021
53 votes
19 answers
1.4K views
How to delete from a text file, all lines that contain a specific string?

How would I use sed to delete all lines in a text file that contain a specific string?

avatar
Fabian
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
2.6K views
How to read XML using XPath in Java

I want to read XML data using XPath in Java, so for the information I have gathered I am not able to parse XML

avatar
Omar
0 1 0 9
asked 07 September, 2021
60 votes
10 answers
1.8K views
Pandas read_csv low_memory and dtype options

When calling df = pd.read_csv('somefile.csv') I get: /Users/josh/anaconda/envs/py27/lib/pytho

avatar
Fabian
0 1 0 9
asked 07 September, 2021
57 votes
29 answers
1.5K views
How do I parse a string to a float or int?

In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or par

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
2.3K views
How do you parse and process HTML/XML in PHP?

How can one parse HTML/XML and extract information from it?

avatar
Robt
0 1 0 9
asked 07 September, 2021