Category "parsing"

TypeError: strptime() argument 1 must be str, not float

I'm having parsing errors on my code, below is the code and almost understandable dataset import numpy as np import pandas as pd from datetime import datetime

Log Parsing with Regex

I'm trying to parse an Apache Log with regex using Python and assign it to separate variables. ACCESS_LOG_PATTERN = '^(\S+) (\S+) (\S+) \[([\w:/]+\s[+\-]\d{4})

How to split a Thai sentence, which does not use spaces, into words?

How to split word from Thai sentence? English we can split word by space. Example: I go to school, split = ['I', 'go', 'to' ,'school'] Split by looking only s

How to split a Thai sentence, which does not use spaces, into words?

How to split word from Thai sentence? English we can split word by space. Example: I go to school, split = ['I', 'go', 'to' ,'school'] Split by looking only s

Python - String.split() using delimiter ',', but there is price in string also using comma in thousand

I am trying to use Python to parse a CSV file. I have a string like this: "11/11/14","Buy","1,900","$10.40","-$19,760.00" I want to parse it to into list

parse pcap file with scapy

I am comparing scapy and dpkt in terms of speed. I have a directory with pcap files which I parse and count the http requests in each file. Here's the scapy cod

python map string split list

I am trying to map the str.split function to an array of string. namely, I would like to split all the strings in a string array that follow the same format. An

True-way solution in Java: parse 2 numbers from 2 strings and then return their sum

Given the code: public static int sum(String a, String b) /* throws? WHAT? */ { int x = Integer.parseInt(a); // throws NumberFormatException int y = Integer

How to validate Hour and Minutes that came from a Swing textBox?

I have a window that contains a HH:mm time TextField in it, in 24 hours format I need to validate if the user entered any non valid hour, like 28:00, 99:00, 24

How to validate Hour and Minutes that came from a Swing textBox?

I have a window that contains a HH:mm time TextField in it, in 24 hours format I need to validate if the user entered any non valid hour, like 28:00, 99:00, 24

javascript parser for a string which contains .ini data

If a string contains a .ini file data , How can I parse it in JavaScript ? Is there any JavaScript parser which will help in this regard? here , typically str

Explode not working properly with dash

We have this string : "Il Responsabile della Sicurezza nelle gallerie – 1° PARTE" and we want to get two part of it: Il Responsabile della Sicurezza

XSLT: How to parse out an element into multiple variables

I am trying to parse out full name out of a single field and store them into different variables so I can use them uniquely as FirstName, MiddleName, LastName.