Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Freelancer Needed to Clean Up Pandas/Plotly Scripts
Post: Freelancer Needed to Clean Up Pandas/Plotly Script...

Hi, I am looking for a freelance developer to help clean up a handful of small Pandas-based, statistical analysis scripts. The main goals are: • reduce repetitive code • make updates more manageab...
devansing Jobs 4 1,597 Jul-11-2023, 05:22 PM
    Thread: Add multiple vertical rectangles to a chart in plotly?
Post: Add multiple vertical rectangles to a chart in plo...

I'm struggling to figure out how to create multiple vertical rectangles that span entire plots using plotly. I'm assuming this is possible using add_vrect()? Below is the code that I want to add the...
devansing Data Science 2 1,223 Jun-08-2023, 10:58 PM
    Thread: How to create a plot with line graphs and vertical bars
Post: RE: How to create a plot with line graphs and vert...

(Feb-28-2023, 11:31 AM)get2sid Wrote: (Feb-22-2023, 08:14 PM)devansing Wrote: Hi, I am trying to figure out how to create a graph similar to the following: [Image: https://i.stack.imgur.com/LHt...
devansing Data Science 6 2,343 Feb-28-2023, 05:38 PM
    Thread: How to create a plot with line graphs and vertical bars
Post: RE: How to create a plot with line graphs and vert...

(Feb-25-2023, 08:38 PM)snippsat Wrote: See if this NoteBook helps. This is exactly what I was trying to do! Thanks so much for your help!
devansing Data Science 6 2,343 Feb-27-2023, 05:17 PM
    Thread: How to create a plot with line graphs and vertical bars
Post: RE: How to create a plot with line graphs and vert...

(Feb-23-2023, 06:47 AM)Gribouillis Wrote: This example may help. Thanks!
devansing Data Science 6 2,343 Feb-27-2023, 05:13 PM
    Thread: How to create a plot with line graphs and vertical bars
Post: How to create a plot with line graphs and vertical...

Hi, I am trying to figure out how to create a graph similar to the following: [Image: https://i.stack.imgur.com/LHt8r.png] where the x axis has the monthly time data and the y axis represents the ...
devansing Data Science 6 2,343 Feb-22-2023, 08:14 PM
    Thread: Inconsistent sorting with the .sort_values() function
Post: RE: Inconsistent sorting with the .sort_values() f...

Thanks again. I looked into what you said and you are correct. I changed the column to a numeric dtype using apply(pd.to_numeric) and was able to sort it correctly. The only issue now is that the co...
devansing Data Science 4 1,598 Jun-28-2022, 05:02 PM
    Thread: Inconsistent sorting with the .sort_values() function
Post: RE: Inconsistent sorting with the .sort_values() f...

Finally found the attachment function. Please see attachments for data examples.
devansing Data Science 4 1,598 Jun-28-2022, 03:40 PM
    Thread: Inconsistent sorting with the .sort_values() function
Post: Inconsistent sorting with the .sort_values() funct...

Hi, I am trying to sort rows of data in a pandas Dataframe using the .sort_values() function. The goal is to change the order so that the numbers are displayed from lowest to highest. When I select...
devansing Data Science 4 1,598 Jun-28-2022, 03:31 AM
    Thread: Storing variables into one file for use in multiple Jupyter notebooks
Post: Storing variables into one file for use in multipl...

Hi, I'm working with a bunch of economic indicators (~50) using a couple of APIs and am trying to figure out the best way to compile them as variables and call them across various Jupyter notebook fi...
devansing General Coding Help 1 1,743 Feb-05-2022, 01:02 AM
    Thread: Setting the x-axis to a specific column in a dataframe
Post: Setting the x-axis to a specific column in a dataf...

Hi, I am trying to update the x-axis on a line chart that contains two y-axes. The data is being read from two separate Excel files and the column that I want to use as the x-axis is in both Excel f...
devansing Data Science 0 2,040 May-23-2021, 12:11 AM
    Thread: Help with a ValueError
Post: RE: Help with a ValueError

(Dec-12-2020, 07:24 AM)palladium Wrote: See here: https://pandas.pydata.org/pandas-docs/ve...tchas.html and here: https://stackoverflow.com/questions/3692...em-a-any-o A little hard to give specif...
devansing General Coding Help 4 2,960 Dec-13-2020, 05:40 PM
    Thread: Help with a ValueError
Post: RE: Help with a ValueError

Whoops, I totally forgot to copy that: ValueError Traceback (most recent call last) <ipython-input-7-3522fdff8944> in <module> 28 dateRange.ap...
devansing General Coding Help 4 2,960 Dec-11-2020, 03:08 PM
    Thread: Help with a ValueError
Post: Help with a ValueError

I am currently trying to work through a YouTube tutorial and am stuck on the following error: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()...
devansing General Coding Help 4 2,960 Dec-11-2020, 02:36 PM
    Thread: Exception: Returned Type Mismatch Error
Post: Exception: Returned Type Mismatch Error

I'm taking an online course and have to submit the code through a 3rd party grading system. I have all of the scripts working as intended locally but when I submit it to the online grader, I'm gettin...
devansing General Coding Help 1 5,165 Mar-06-2020, 12:01 AM
    Thread: Traceback error in PyCharm but not in other IDEs?
Post: RE: Traceback error in PyCharm but not in other ID...

Thanks for the Requests recommendation and tutorial -- this is a much better solution!
devansing General Coding Help 7 6,369 Feb-29-2020, 08:18 PM
    Thread: Traceback error in PyCharm but not in other IDEs?
Post: RE: Traceback error in PyCharm but not in other ID...

Doing that threw a crazy long error – in a nutshell:Error:urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]Thanks to that new Traceback error though, I was able to find a fix o...
devansing General Coding Help 7 6,369 Feb-28-2020, 05:36 PM
    Thread: Traceback error in PyCharm but not in other IDEs?
Post: RE: Traceback error in PyCharm but not in other ID...

Thanks for the reply. I accidentally had two variable names in there because I was swapping them out thinking "page" might be a constant in Python. Anyway, I ran the code with "page" consistent throug...
devansing General Coding Help 7 6,369 Feb-28-2020, 01:47 PM
    Thread: Traceback error in PyCharm but not in other IDEs?
Post: Traceback error in PyCharm but not in other IDEs?

I'm wanting to switch to PyCharm but I'm getting a Traceback error with the following code that I haven't gotten before in other IDEs. I'm running v3.8.2 on a Mac. Any help would be greatly appreciate...
devansing General Coding Help 7 6,369 Feb-28-2020, 05:58 AM

User Panel Messages

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