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


2 answers
468 views
0
How do I change the dtype from object to int64?

import numpy as npimport pandas aspddf_maize=pd.read_csv(PSD online data maize.csv)print(df_maize[Name])print(df_maize[Production])print(df_maize[Exports])# If you look at the printed results, the dat...

1 years ago

1 answers
385 views
0
Print Python beautiful soap text only

import requestsfrom bs4 import BeautifulSoupurl = https://toss.im/res = requests.get(url)res.raise_for_statussoup = BeautifulSoup(res.text, lxml)toss = soup.find(li, attrs={class:p-navbar__item})print...

1 years ago

1 answers
240 views
0
Questions about creating Python class objects

acc_cus = []dif = 0while 1: num = int(input( ++++++++++++++++++++++++++++++Enter the number of the item you want.1. Create an account2. Deposit3. Withdrawal4. Check account information5. Shutdown++++...

1 years ago

1 answers
447 views
0
I want pytorch to have a value other than the location of the index with the highest value in the Tensor.

I want pytorch to have a value other than the location of the index with the highest value in the TensorI have a three-dimensional sensor in Pythorch, and I would like to set the highest value among d...


1 answers
367 views
0
How to Align Multiple Frames in Pysimplegui

https://mebee.info/2022/02/04/post-34359/Using the above site as a reference, we created a layout consisting of multiple frames.import PySimpleGUI as sgsg.theme ('LightGreen')l1 = [ [sg.Button('A', ...

1 years ago

3 answers
442 views
0
I want python to expose the histogram data in the txt file to quantitative data and store it in an array.

I'm trying to create a program in Python 3 using the Jupiter Notebook.What you want to do is to read the histogram data in the txt file into an array that is dispersed into the original quantitative d...

1 years ago

1 answers
395 views
0
Error importing dtreeviz

I would like to import dtreeviz with the following code. from dtreeviz.trees import dtreevizWhen you try, you get the following error:cannot import name 'dtreeviz' from 'dtreeviz.trees'Graphviz is ins...

1 years ago

1 answers
448 views
0
Error in drawing decision tree

Execute the following code to draw the decision tree.#index extractionx_0 = df_info.resample('M') .count()x_0=x_0.drop(x_0.columns.values,axis=1)time_index=x_0.indexprint(time_index)# Draw decision tr...

1 years ago

1 answers
239 views
0
Python BeautifulSoup4 Web Crawling Questions

I'm practicing web crawling to get the title of the View tab in the Naver search results, but the data is not imported as [] is displayed incorrectly.

1 years ago

2 answers
342 views
0
Understanding How Attributes Are Declared Outside the Constructor

What is the difference between Python 3 where the attribute is declared outside and inside the constructor (_init__ method)?Please tell me where Python's documentation is located.class Something: a=&l...

1 years ago
« - 8 - »

© 2024 OneMinuteCode. All rights reserved.