Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Context-sensitive delimiter
Post: RE: Context-sensitive delimiter

You could use a different delimiter, say a semicolon inside the square brackets. After you have your list, you can replace the semicolon (or whichever delimiter you chose) with a comma. Something like...
idratherbecoding General Coding Help 9 1,574 May-15-2023, 03:30 PM
    Thread: OR-Tools LP Limit Number of Elements in Solution
Post: OR-Tools LP Limit Number of Elements in Solution

I have a relatively simple binary integer optimization problem and I am using Google OR-Tools' linear solver. I started the project in C#, but have since decided to port to Python and finish from ther...
idratherbecoding Data Science 0 816 May-14-2023, 11:02 PM
    Thread: Unexpected output from df.loc when indexing by label
Post: RE: Unexpected output from df.loc when indexing by...

Thank you! That definitely did not occur to me that skipping the first row when constructing the DataFrame was the culprit. I will be using that method for consistency with the rest of the code in my ...
idratherbecoding General Coding Help 6 1,262 Apr-18-2023, 04:06 PM
    Thread: Unexpected output from df.loc when indexing by label
Post: RE: Unexpected output from df.loc when indexing by...

Thank you for taking a look and offering your input. I will keep working and see if I can figure it out. I will be sure to come back and let you know if I find a solution as I’m sure the eventual solu...
idratherbecoding General Coding Help 6 1,262 Apr-18-2023, 01:18 PM
    Thread: Unexpected output from df.loc when indexing by label
Post: Unexpected output from df.loc when indexing by lab...

I am back again with another pandas question. I am getting some unexpected output from df.loc. As part of a larger project, I broke my problem out into a smaller project to exclude any code that is ex...
idratherbecoding General Coding Help 6 1,262 Apr-18-2023, 01:57 AM
    Thread: html_table_parser_python3 KeyError odd behavior
Post: RE: html_table_parser_python3 KeyError odd behavio...

Thank you so much for taking the time write such a detailed response. This really helped me clean up my code quite a bit. You are right, that is much easier and faster. Thanks!
idratherbecoding General Coding Help 3 1,099 Apr-14-2023, 04:27 PM
    Thread: html_table_parser_python3 KeyError odd behavior
Post: RE: html_table_parser_python3 KeyError odd behavio...

I’ve been doing some searching on my own since I posted. I think the problem is that I was not indexing properly and using loc when I should be using iloc. Instead of df.iloc[row, col], which appears...
idratherbecoding General Coding Help 3 1,099 Apr-13-2023, 12:53 PM
    Thread: html_table_parser_python3 KeyError odd behavior
Post: html_table_parser_python3 KeyError odd behavior

Hello, I am new to Python, but I have been hobby coding off and on for many years. I am working on a project to scrape sports data (NFL) and I am running into an issue while using the package html_ta...
idratherbecoding General Coding Help 3 1,099 Apr-13-2023, 04:20 AM

User Panel Messages

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