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
338 views
0
I'm worried about how to process the Pandas table.

I am worried about how to process data using Python's Pandas.Can someone please teach me?I would like to process the following data.Use this dataimport pandas as pdpd.DataFrame([1, 'ame', 30, 'hare', ...

2 years ago

1 answers
426 views
0
Error outputting predictive label on Pythorch: Example has no attribute label

I'm studying natural language processing, and I was writing code while referring to books.If the last prediction is this data, the test data will also be labeled, so the correct answer rate will be pr...


1 answers
406 views
0
The code that uses Pandas to output the contents of CSV will cause the numerical value to deviate from the header part written in Japanese.

I wrote the code to output the data saved as csv in Python using pandas.However, when I try to output the results, the header part written in Japanese and the numerical value are out of alignment.As I...


2 answers
336 views
0
Overlapping sound data with Numpy

The graph that appears to be the sum of the elements by calculating the sum of the numpy arrays in Python was affected.In order to avoid this, I would like to use something from numpy to superimpose t...

2 years ago

1 answers
318 views
0
I want to avoid the possibility of getting decimal points due to a defect in the pandas.

psycopg2 retrieves data from the database in SQL and framing it into data, when the missing bigint column becomes float.I would like to return it to DB after processing it with Pandas, but I get an er...

2 years ago

1 answers
281 views
0
After installing pip, the pip3 command is available, but the pip command is not found.

Installation—pipe 20.1.1 documentationBased on the procedures on the site above, I ran the following commands in order, and now I can use the pip3 command, but I can't find the pip command. curl https...

2 years ago

1 answers
302 views
0
Defining a Function to Extract a Specific String in Python Regular Expressions

There is a data frame containing the URL as shown below.I would like to extract the values of certain parameters here and create a new column to replace them.df=pd.DataFrame({'ulr':['https://www.shop....


2 answers
380 views
0
I want to resolve the error that occurs when I run "Deploy Branch" on Heroku

I would like to permanently run the Discord Bot I created using Heroku.I'm working with GitHub now, but I don't know if the method is right.I just created a repository on GitHub and moved the program ...

2 years ago

2 answers
428 views
0
How to search Twitter for other people's retweets

from:username filter:nativeweetsIf you search with this search command, you will see a tweet retweeted by the user, but if you submit the URL, the information that the user retweeted will be added.(RT...

2 years ago

1 answers
373 views
0
Cannot read matrix from file and calculate mean.: TypeError: cannot perform redundancy with flexible type

I would like to calculate the average value of each line in the following files using Python.A=8×8 matrixSo I wrote the following code, but it turned out to be an error.What should I do?code:import nu...

2 years ago
« - 49 - »

© 2024 OneMinuteCode. All rights reserved.