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

Yeah sorry i realized that thank you so much
baronmontesqieu General Coding Help 2 4,218 Dec-06-2017, 01:39 PM
    Thread: opening a file
Post: opening a file

i am trying to open a file. it is not letting me read the file. WHY? this is my code with open('C:/Users/j_pra/Desktop/98-0.txt','r') as myfile: print (myfile.read())and this is the error i a...
baronmontesqieu General Coding Help 2 4,218 Dec-06-2017, 09:13 AM
    Thread: numpy and statistics module
Post: numpy and statistics module

hello. I am trying to get familiar with numpy and statstics module on python the latter is program i made to input any list and try to find the standard deviation of the list i am getting an error; ...
baronmontesqieu Data Science 2 7,979 Sep-18-2017, 09:57 AM
    Thread: error
Post: RE: error

oh that explains the case, because i made this on another desktop. Thank you ichabod801
baronmontesqieu General Coding Help 2 34,261 Aug-25-2017, 10:23 PM
    Thread: error
Post: error

Hello. This is quite a complex code that I have made. it is not working however, and I would like to see what I have done wrong. the following is the code. the error is shown below the code. Thank ...
baronmontesqieu General Coding Help 2 34,261 Aug-25-2017, 09:58 PM
    Thread: Error and I don't know why?
Post: RE: Error and I don't know why?

Gotcha. Thank you so much.
baronmontesqieu General Coding Help 7 4,174 Aug-23-2017, 12:39 AM
    Thread: Error and I don't know why?
Post: RE: Error and I don't know why?

Thank you so much Larz60+. Just one last question on this thread; do you know if that last line is the correct way to output the following, binary version of column 1, column one, column five
baronmontesqieu General Coding Help 7 4,174 Aug-22-2017, 09:24 PM
    Thread: Error and I don't know why?
Post: RE: Error and I don't know why?

Thank you Larz 60+ just a quick question, what did i do wrong with my code? thanks.
baronmontesqieu General Coding Help 7 4,174 Aug-22-2017, 04:08 PM
    Thread: Error and I don't know why?
Post: Error and I don't know why?

Hello; Im trying to make a code that converts a specific column into binary. I keep on getting an error code. Could Someone tell me what I am doing wrong please? thank you. btw the type of file i am...
baronmontesqieu General Coding Help 7 4,174 Aug-22-2017, 05:37 AM
    Thread: RE function
Post: RE: RE function

Oh I got my answer. Thank you.
baronmontesqieu General Coding Help 12 6,662 Aug-08-2017, 02:26 PM
    Thread: RE function
Post: RE: RE function

ok so now I have the following code, but the output is a set of brackets. import re str = open('directory', 'r').read() pattern = re.findall('\d+(M)\d+(N)\d+(M)', 'filename') print patternoutput []
baronmontesqieu General Coding Help 12 6,662 Aug-08-2017, 02:09 PM
    Thread: RE function
Post: RE: RE function

import csv import re with open('filename', 'r') as fh: reader = csv.reader(fh, delimiter="\t") pattern = re.compile('\d+(M)\d+(N)\d+(M)') print pattern
baronmontesqieu General Coding Help 12 6,662 Aug-08-2017, 01:56 PM
    Thread: RE function
Post: RE: RE function

i guess instead of s, I will put my directory/ file, right?
baronmontesqieu General Coding Help 12 6,662 Aug-08-2017, 01:30 PM
    Thread: RE function
Post: RE: RE function

I tried using the d+M/d+N/d+M format that you had replied to, but when i ran my program the following was said. Traceback (most recent call last): File "C:/Users/hrithikjha/Desktop/SAM output.py", lin...
baronmontesqieu General Coding Help 12 6,662 Aug-08-2017, 03:34 AM
    Thread: can't read my file!!!
Post: RE: can't read my file!!!

Thank you so much! I really appreciate it.
baronmontesqieu General Coding Help 4 3,990 Jul-30-2017, 12:44 AM
    Thread: can't read my file!!!
Post: RE: can't read my file!!!

I am not getting any error. It simply does not output anything. I am new to the forums and I don't really know how to indent my code, but I will try my best here. import csv with open('C:/Users/hrith...
baronmontesqieu General Coding Help 4 3,990 Jul-28-2017, 08:12 PM
    Thread: can't read my file!!!
Post: can't read my file!!!

Hello. I'm trying to read a file after aligning and converting parts of the file, but python is not opening it. Can someone help me? thank you! this is the code. with open('C:/Users/hrithikjha/D...
baronmontesqieu General Coding Help 4 3,990 Jul-28-2017, 07:55 PM
    Thread: RE function
Post: RE: RE function

thank you so much!!! I really appreciate it.
baronmontesqieu General Coding Help 12 6,662 Jul-21-2017, 03:37 PM
    Thread: RE function
Post: RE function

I have an urgent question over python programming language. I am trying to find a pattern in my code with a pattern as follows intMintNintM by int, i mean an integer number this will help me in find...
baronmontesqieu General Coding Help 12 6,662 Jul-21-2017, 03:24 PM

User Panel Messages

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