Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Expand the range of a NumPy array?
Post: Expand the range of a NumPy array?

Hello everyone, I have to agree that I am not great at coding and math but this forum has helped me a lot before and come seeking your help once again. Let's say I have a multi dimensional array "a...
PythonNPC General Coding Help 0 746 Jan-31-2023, 02:41 AM
    Thread: How to quantize a 4 dimensional array?
Post: How to quantize a 4 dimensional array?

Hello, I am new to NumPy. Lets say I have an array: nparray = np.array(output2) print(output2.shape)Output: (1, 26, 26, 128)All the values are floating point numbers. Most of them are 0.xxxxxxx, few...
PythonNPC General Coding Help 2 1,611 Apr-23-2022, 03:33 PM
    Thread: Can someone explain this small snippet of code like I am a 5 year old?
Post: RE: Can someone explain this small snippet of code...

Thanks! That was really helpful. Any idea what this line means? x = output2[0, :, :, i]I have no idea what those colons mean, sure, I get output2 is a list of x will get the value of the list but w...
PythonNPC General Coding Help 3 1,239 Apr-07-2022, 11:39 PM
    Thread: Can someone explain this small snippet of code like I am a 5 year old?
Post: Can someone explain this small snippet of code lik...

Hello everyone, I have been detached from Python for quite a while now, can someone explain this code to me as if I am a 5 year old? print (output2.shape) #Prints: "(1, 13, 13, 128)" n_features ...
PythonNPC General Coding Help 3 1,239 Apr-07-2022, 07:40 PM
    Thread: Sending an email with attachment without using SMTP?
Post: RE: Sending an email with attachment without using...

(May-03-2020, 07:35 PM)ndc85430 Wrote: Perhaps you need to consider some mail sending service, which you may have to pay for if the amount you want to send is quite high. Gmail has an HTTP API, but ...
PythonNPC General Coding Help 5 3,167 May-05-2020, 07:58 AM
    Thread: Prevent a PDF from being edited using Python?
Post: Prevent a PDF from being edited using Python?

Hello, My question is simple, I am using ReportLab to generate PDFs. My question is that can I encrypt the PDFs in such a way that they can be prevented from editing using Python. Because my applic...
PythonNPC General Coding Help 1 2,281 May-05-2020, 07:43 AM
    Thread: Sending an email with attachment without using SMTP?
Post: RE: Sending an email with attachment without using...

Bump?
PythonNPC General Coding Help 5 3,167 May-03-2020, 09:01 AM
    Thread: Sending an email with attachment without using SMTP?
Post: Sending an email with attachment without using SMT...

Hello, I am making an application that generates PDF reports. But my application is on the Raspberry Pi, so the clients need an option that will allow them to send these reports via emails. I can us...
PythonNPC General Coding Help 5 3,167 Apr-30-2020, 12:50 PM
    Thread: Delete all contents of a file from the fifth line?
Post: Delete all contents of a file from the fifth line?

Hello, I want to delete all the contents of the file from under the fifth line. Is this doable? I don't want to just print the file on the console, I actually want the contents of the file to be del...
PythonNPC General Coding Help 1 1,901 Apr-18-2020, 08:18 AM
    Thread: Grabbing comma separed values from SQLite and putting them in a list
Post: RE: Grabbing comma separed values from SQLite and ...

(Apr-10-2020, 07:52 AM)buran Wrote: First of all - I don't have information about the whole picture, but even based on the information you have provided so far, I would go for separate table. It's t...
PythonNPC General Coding Help 8 4,008 Apr-10-2020, 09:29 AM
    Thread: Grabbing comma separed values from SQLite and putting them in a list
Post: RE: Grabbing comma separed values from SQLite and ...

(Apr-10-2020, 06:37 AM)buran Wrote: (Apr-10-2020, 06:28 AM)PythonNPC Wrote: I thought about fixing the DB, but there's can be variable number of floats.In a relational database, you would have sep...
PythonNPC General Coding Help 8 4,008 Apr-10-2020, 07:39 AM
    Thread: Grabbing comma separed values from SQLite and putting them in a list
Post: RE: Grabbing comma separed values from SQLite and ...

(Apr-08-2020, 02:16 PM)buran Wrote: I understand one cell as single value in table/column/row split the string at commas and cast elements to float/Decimal And why don't fix the DB and have separat...
PythonNPC General Coding Help 8 4,008 Apr-10-2020, 06:28 AM
    Thread: Grabbing comma separed values from SQLite and putting them in a list
Post: Grabbing comma separed values from SQLite and putt...

Hello, I am really confused about this. Let's say I have a database and one cell contains the following: Quote:334.0,1698.5,26.17,2323.0 I want to convert it into a list like [334.0, 1698.5, 26....
PythonNPC General Coding Help 8 4,008 Apr-08-2020, 02:04 PM
    Thread: Displaying Data from a database and run a function when clicked?
Post: Displaying Data from a database and run a function...

Hello, I am writing a simple GUI in Tkinter. I want to connect to my database and show the data onto my GUI. There might be more data so a scroll bar needs to appear. And when one of the rows of my...
PythonNPC GUI 1 2,065 Mar-10-2020, 01:30 PM
    Thread: Interpreter and running a .py file give different outputs
Post: RE: Interpreter and running a .py file give differ...

(Jul-21-2019, 07:25 AM)Gribouillis Wrote: Quote:What are the differences when running on the interpreter and when running a .py file. I already answered a similar question. See here to see if it exp...
PythonNPC General Coding Help 5 2,989 Jul-21-2019, 01:07 PM
    Thread: Interpreter and running a .py file give different outputs
Post: RE: Interpreter and running a .py file give differ...

Bump.
PythonNPC General Coding Help 5 2,989 Jul-21-2019, 07:12 AM
    Thread: Interpreter and running a .py file give different outputs
Post: RE: Interpreter and running a .py file give differ...

(Jul-14-2019, 10:14 AM)Larz60+ Wrote: Memory locations are not ever guaranteed to be in the same location. It' assigned at time or operation. Yes, I am aware of that. But every time I run the .py f...
PythonNPC General Coding Help 5 2,989 Jul-14-2019, 03:08 PM
    Thread: Interpreter and running a .py file give different outputs
Post: Interpreter and running a .py file give different ...

I have written the following code which gives different output when saved as a .py file and run and on the Python interpreter. a=100000 b=a c=100000 print (id(a),id(b),id(c))Output when saving as .py...
PythonNPC General Coding Help 5 2,989 Jul-14-2019, 05:49 AM

User Panel Messages

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