python tag

Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.

Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. It is often described as a "batteries included" language due to its comprehensive standard library.

Guido van Rossum began working on Python in the late 1980s as a successor to the ABC programming language and first released it in 1991 as Python 0.9.0. Python 2.0 was released in 2000 and introduced new features such as list comprehensions, cycle-detecting garbage collection, reference counting, and Unicode support. Python 3.0, released in 2008, was a major revision that is not completely backward-compatible with earlier versions. Python 2 was discontinued with version 2.7.18 in 2020.

Python consistently ranks as one of the most popular programming languages. It is used by many organizations and companies. Pixar, Disney, Instagram and the developers of the Linux Kernel are among many of it's high-profile users, which includes many developers of Free and Open source software.

Reference: WIKIPEDIA

4650 questions


1 answers
245 views
0
I want to expand the list in DataFrame cells in the column direction

Now we have DataFrame listed in each of the following cells:import pandas as pddf = pd.DataFrame( {'x':[['Li', 'C', ['Li', 'N', ['Li', 'O']},}, index=[1,2,3])I would like to process this DataFrame as ...

2 years ago

1 answers
360 views
0
I want to tilt past data over time

I want to tilt past data over time, but I don't know how to write it.Specifically ·Data within the last year will not be tilted (x1)·Tilt the data after 1 year by × 0.9 every 3 months (image like × 0....

2 years ago

1 answers
361 views
0
Please tell me how to deal with selenium's StaleElementReferenceExceptiont error

QuestionThe StaleElementReferenceException occurs when you execute the code below.It didn't come out at first, but it's almost 100% now.TriedSleep failed to set the wait timeI couldn't put the element...

2 years ago

1 answers
320 views
0
I have a question about Python data coupling.

I have a question about Python data coupling.Could you tell the series how to make df1 left external with the date key?series=pd.series(['1/1', '1/2', ...'1/10', name='date')df1=pd.DataFrame({'date':[...

2 years ago

1 answers
438 views
0
QTreeWidget Drag & Drop does not move to top level

I am using PySide 6.I made a two-tier tree with QTreeWidget.When I move my child's QTreeWidgetItem, I want to move only directly below the top level QTreeWidgetItem.We were able to avoid moving from o...

2 years ago

1 answers
254 views
0
Mystery of Intramodule Variables in Python

I'm afraid you'll scold me not to access the variables in the module, but is there any way to set a to 100 on main.py?#main.pyfrom sub import*foo()print(a)#0 T-T)/#sub.pya = 0def foo(): global a a = 1...

2 years ago

1 answers
405 views
0
TypeError: linear(): argument 'input' (position 1) must be Tensor, not table not resolved successfully

I would like to make an inference about the model I learned in Pythorch.The model has two inputs and one output.Therefore, I tried to make an inference with two inputs, but it didn't work well.How can...


1 answers
293 views
0
[Errno2] when running No such file or directory appears.

I have been using python for some complicated calculations (PC: Mac-OS, code write: Atom, calculation run: terminal).Due to business reasons, I bought a new PC and tried to reflect the calculations I ...

2 years ago

1 answers
430 views
0
I want to import the common module

I'm studying a book called Deep Learning from scratch.If you continue to read, you will be importing a module called common, where the following error occurs:ModuleNotFoundError: No module named 'comm...


1 answers
311 views
0
I want to correct the part of the question error from deep learning 1 that I make from scratch.

There is an error and I don't know where to fix it, I think I should probably correct the for statement from line 55.import sys,osimport numpy as npsys.path.append(os.pardir)from dataset.mnist import ...

2 years ago
« - 38 - »

© 2024 OneMinuteCode. All rights reserved.