Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Doubt in Regex Lookaround
Post: RE: Doubt in Regex Lookaround

Dear Gribouillis Thanks a lot for your help. It works ok for me. I have one more doubt. Can you plz look at it also import re txt = "T-STR(s)" pat = re.compile(r"\bT-STR\(s\)\b", flags=re.IGNORECASE...
fullstop General Coding Help 3 804 Feb-03-2020, 09:05 AM
    Thread: Doubt in Regex Lookaround
Post: Doubt in Regex Lookaround

Hi I am trying to use lookbehind for a sample code as below import re txt = "love regex or hate regex, can't ignore regex" pattern = re.compile("(?<=(love|hate)\s)regex") pattern.findall(txt)The ...
fullstop General Coding Help 3 804 Jan-31-2020, 04:03 AM
    Thread: getting trailing zeros with 1 during pandas read
Post: getting trailing zeros with 1 during pandas read

I am reading a simple csv file with multiple columns. One of my column have 2 different values, one is 1.444 and other is 1.908 When I am reading the csv using df = pd.read_csv('file.csv')i got corre...
fullstop Data Science 1 1,419 Jan-05-2020, 03:35 PM
    Thread: select nan value
Post: select nan value

I have a dataframe which have 2 columns. They have mutually exclusive nan in the cells. I mean the place where col1 is nan, col2 have some numerical value and vice versa. The situation is shown below ...
fullstop Data Science 1 634 Dec-23-2019, 04:17 PM
    Thread: Error in configparser
Post: RE: Error in configparser

hello thanks a lot for the detailed explaination. But i don't understand when you say "If you do it like this you are adding new_var as attribute to the dictionary." which dictionary you are talking a...
fullstop General Coding Help 12 2,309 Dec-22-2019, 07:03 PM
    Thread: Error in configparser
Post: doubt in configparser

I have a config file (abc.ini) as below. It just have one Section with an item name= None [Section] name = None Now I am calling this in my main python code as below import configparser config = con...
fullstop General Coding Help 12 2,309 Dec-22-2019, 05:25 PM
    Thread: Error in configparser
Post: RE: Error in configparser

(Dec-21-2019, 08:56 AM)buran Wrote: (Dec-21-2019, 08:29 AM)fullstop Wrote: Even when I fix it I am getting the error post the full traceback in error tags hi my only problem is what is happening i...
fullstop General Coding Help 12 2,309 Dec-21-2019, 09:04 AM
    Thread: Error in configparser
Post: RE: Error in configparser

(Dec-21-2019, 08:26 AM)buran Wrote: you have extra [ at the end of PATHS thanks, but that was just a typo. Even when I fix it I am getting the error
fullstop General Coding Help 12 2,309 Dec-21-2019, 08:29 AM
    Thread: Error in configparser
Post: RE: Error in configparser

dear Larz60+ thanks for the reply when i use config ["PATHS"]["folder_path"] i get error
fullstop General Coding Help 12 2,309 Dec-21-2019, 08:20 AM
    Thread: Error in configparser
Post: Error in configparser

I have a configuration file (abc.ini)as below [DEFAULTS] plus = plus.jpg [PATHS] folderPath = None import configparser config = configparser.ConfigParser() config.read("abc.ini", encoding="utf-8") ...
fullstop General Coding Help 12 2,309 Dec-21-2019, 07:45 AM
    Thread: Error in importing numpy
Post: Error in importing numpy

I installed numpy (numpy-1.17.4-py36h4320e6b_0.tar.bz2) offline using the source: https://repo.continuum.io/pkgs/main/win-64/ When I check the installation using conda list, I have numpy installed, bu...
fullstop General Coding Help 1 650 Dec-18-2019, 06:31 AM
    Thread: Issue in .apply function
Post: Issue in .apply function

I have a simple code as below import pandas as pd matrix = [(222, 34, 23), (333, 31, 11), (444, 16, 21), (555, 32, 22), (666, 33, 27), (777, 35, 11) ...
fullstop General Coding Help 0 487 Dec-17-2019, 01:29 PM
    Thread: ImportError
Post: RE: ImportError

Thanks a lot sir, it clears my doubt thoroughly
fullstop General Coding Help 2 708 Dec-15-2019, 02:04 PM
    Thread: ImportError
Post: ImportError

I have a directory structure as below: WD/ main.py pkg1/ __init__.py file1.py file2.py Now I would like to import pkg1 in my main python code "main.py". I...
fullstop General Coding Help 2 708 Dec-13-2019, 05:22 AM
    Thread: Error in importing package in pycharm
Post: Error in importing package in pycharm

I have a directory structure as below. Pro_test_main/Pro_test I would like to run Pro_test as a module. In my Pro_test folder I have two things, one is __main__.py file and another is a package named...
fullstop General Coding Help 0 835 Dec-12-2019, 04:03 PM

User Panel Messages

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