Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to skip a folder directory in a loop
Post: RE: How to skip a folder directory in a loop

(Nov-18-2020, 07:34 AM)bowlofred Wrote: This won't work. dirs is a list of all directories at the current point of the os.walk(). Your comparison will never match, and if it did match it wouldn't ...
mfkzolo General Coding Help 2 12,365 Nov-18-2020, 07:56 AM
    Thread: How to skip a folder directory in a loop
Post: How to skip a folder directory in a loop

Hi, I have a code below: path = "C:\User\Work\Identity\TestFolders" def list_files(dir): r = [] skip = ["NetIQ"] for root, dirs, files in os.walk(dir): if dirs in skip: ...
mfkzolo General Coding Help 2 12,365 Nov-18-2020, 07:01 AM
    Thread: How to Filter a Dataframe
Post: RE: How to Filter a Dataframe

(Nov-16-2020, 05:14 AM)mfkzolo Wrote: Hi, I tried your code: data = data[data['S_ID'] != '[]']But I still get the whole dataset, not filtered Output: Active ... S_ID 6 True ... ...
mfkzolo Data Science 4 2,267 Nov-16-2020, 05:31 AM
    Thread: How to Filter a Dataframe
Post: RE: How to Filter a Dataframe

Hi, I tried your code: data = data[data['S_ID'] != '[]']But I still get the whole dataset, not filtered Output: Active ... S_ID 6 True ... [] 7 True ... [] 8 ...
mfkzolo Data Science 4 2,267 Nov-16-2020, 05:14 AM
    Thread: How to Filter a Dataframe
Post: How to Filter a Dataframe

I have this data Quote:Active CreateDate CreateTime UserName S_ID TRUE 2020-11-03 00:00:00 12:04:29 M001AE8 [] TRUE 2020-11-03 00:00:00 12:04:29 M001AE8 [] TRUE 2020-11-03 00:00:00 12:02:35 M001AF0 []...
mfkzolo Data Science 4 2,267 Nov-13-2020, 12:59 PM
    Thread: Select a value from Dataframe
Post: Select a value from Dataframe

Hi, How do I select a value from a column in my df, a value that start with a character, small or capital followed by numbers. This is my code search = ["S", "s"] bool_series = df["UserName"].str....
mfkzolo General Coding Help 2 1,657 Nov-12-2020, 09:02 AM
    Thread: Looping through Folder structure and get files
Post: Looping through Folder structure and get files

Hi, I have this folder Structure: \\serverName\ExternalData\: BPM CRM DDM I want to go to \\serverName\ExternalData\BPM and get the latest file, process it (take two fields and put it in the list) ...
mfkzolo General Coding Help 0 1,870 Nov-02-2020, 08:31 AM

User Panel Messages

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