Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Extract parts of multiple log-files and put it in a dataframe
Post: RE: Extract parts of multiple log-files and put it...

(Apr-27-2022, 08:39 AM)menator01 Wrote: I have not used glob so, don't really know about it. Using os.listdir (Code not tested) from os import listdir import pandas as pd all_files = listdir('my_...
hasiro General Coding Help 4 2,081 Apr-27-2022, 12:44 PM
    Thread: Extract parts of multiple log-files and put it in a dataframe
Post: RE: Extract parts of multiple log-files and put it...

(Apr-25-2022, 07:19 PM)menator01 Wrote: Look into os.listdir and os.walk Hi Many thanks for help. I used glob for handle multiple files with .txt ending. import glob import pandas as pd path = '/U...
hasiro General Coding Help 4 2,081 Apr-26-2022, 09:07 PM
    Thread: Extract parts of multiple log-files and put it in a dataframe
Post: Extract parts of multiple log-files and put it in ...

Hi everyone As I posted a few weeks ago (https://python-forum.io/thread-36845-pos...#pid155721), I want extract parts of multiple log-files and put it in a dataframe. For a single log-file the code ...
hasiro General Coding Help 4 2,081 Apr-25-2022, 07:07 PM
    Thread: Extract parts of a log-file and put it in a dataframe
Post: RE: Extract parts of a log-file and put it in a da...

(Apr-06-2022, 09:14 PM)deanhystad Wrote: There must be lines with more than one ":" in it. Maybe a time? You can tell split when to stop splitting. This tells split to stop after the first split....
hasiro General Coding Help 4 6,277 Apr-08-2022, 01:18 PM
    Thread: Extract parts of a log-file and put it in a dataframe
Post: RE: Extract parts of a log-file and put it in a da...

(Apr-05-2022, 08:32 PM)deanhystad Wrote: This makes a dictionary where "Model" is a key and "Hamilton-C1" the value. You can use dictionary operations to get the keys or the values, or get the valu...
hasiro General Coding Help 4 6,277 Apr-06-2022, 08:18 PM
    Thread: Extract parts of a log-file and put it in a dataframe
Post: Extract parts of a log-file and put it in a datafr...

Hi I'm a python beginner and would like to extract parts of a log-file and put it in a dataframe. I tryed something, but it is not what I want. Log-File content looks like this: Output:------------...
hasiro General Coding Help 4 6,277 Apr-05-2022, 06:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020