Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: creating a loop
Post: RE: creating a loop

Any thoughts anyone
yk303 General Coding Help 2 1,850 Feb-06-2021, 02:01 AM
    Thread: creating a loop
Post: creating a loop

Hello, I have a line of code that works fine for a single column in the data frame. I would now like to convert this so that it finds all the columns in the data frame (returnsall)and passes them thr...
yk303 General Coding Help 2 1,850 Feb-03-2021, 10:53 AM
    Thread: merging two data frames
Post: merging two data frames

Hello, I like to merge two dataframes. But the problem is that both tables have multiindexes. When I try to merge, it can't find the common 'columns'. I just want it to merge on the basis of indexes ...
yk303 Data Science 1 6,816 Jan-16-2021, 06:24 AM
    Thread: how to count frequency in a column
Post: RE: how to count frequency in a column

Hi DeaD_EyE, I am indeed using Pandas and DataFrame. I don't think this is what I am looking for. Is there a way I can attach an image on this post. I don't think I can. I just want to tally up bu...
yk303 Data Science 3 2,440 Jan-15-2021, 03:27 AM
    Thread: how to count frequency in a column
Post: how to count frequency in a column

Hello, Can somebody please tell me how I can count number of 'Buy', 'Sell' on a yearly basis for the chart below. thanks, YK303 Output: SYMBOL PROCESS Year COMMISSION TRANSACTION_TYPE @.HSE 170...
yk303 Data Science 3 2,440 Jan-14-2021, 06:48 AM
    Thread: Help setting up dataframes
Post: Help setting up dataframes

Hello everyone, I have setup dataframes before but I always struggle at the early stages. There is some key piece of information that I am missing and I am hoping someone here can point out what I a...
yk303 Data Science 0 1,657 Jan-05-2021, 10:33 PM
    Thread: Code no longer working
Post: RE: Code no longer working

(Dec-21-2020, 07:18 AM)bowlofred Wrote: all is normally a built-in function. By using that name as your variable, you can't use that function. I would recommend using another name. Are you sure t...
yk303 General Coding Help 14 10,107 Dec-21-2020, 07:34 PM
    Thread: Code no longer working
Post: RE: Code no longer working

(Dec-21-2020, 07:18 AM)bowlofred Wrote: all is normally a built-in function. By using that name as your variable, you can't use that function. I would recommend using another name. Are you sure t...
yk303 General Coding Help 14 10,107 Dec-21-2020, 07:44 AM
    Thread: Code no longer working
Post: RE: Code no longer working

(Dec-21-2020, 04:14 AM)bowlofred Wrote: In this case you only have one line above it. Move that line below the function, and leave a couple of blank lines below the function to serve as a visual br...
yk303 General Coding Help 14 10,107 Dec-21-2020, 06:04 AM
    Thread: Code no longer working
Post: RE: Code no longer working

(Dec-19-2020, 07:02 AM)bowlofred Wrote: As I said before, interspersing function definitions with other code will make it harder to follow the execution. Line 46 is inside the function read_history...
yk303 General Coding Help 14 10,107 Dec-21-2020, 04:02 AM
    Thread: Code no longer working
Post: RE: Code no longer working

(Dec-18-2020, 01:25 PM)ndc85430 Wrote: The problem is quite self-explanatory really: on line 55, you try to use a variable called history which hasn't been declared in that scope. Is that line suppo...
yk303 General Coding Help 14 10,107 Dec-19-2020, 06:56 AM
    Thread: Code no longer working
Post: RE: Code no longer working

Everyone, I want to move this thread forward. bowlofred pointed me in the right direction with my problem. I now have another problem my code. Can you please have a look. I am pasting the code again...
yk303 General Coding Help 14 10,107 Dec-18-2020, 10:30 AM
    Thread: Code no longer working
Post: RE: Code no longer working

(Dec-18-2020, 09:17 AM)bowlofred Wrote: The ipython stuff looks like it's for showing matplot info in a jupyter notebook. I don't think repl.it will support ipython stuff. Thank you for pointing th...
yk303 General Coding Help 14 10,107 Dec-18-2020, 10:27 AM
    Thread: Code no longer working
Post: Code no longer working

Hello, Earlier this year, I downloaded and modified a code that helps you to analyze your whatsapp chat data. I used Anaconda and Jupyter notebook to run the codes and they ran without any issues. M...
yk303 General Coding Help 14 10,107 Dec-18-2020, 08:09 AM

User Panel Messages

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