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
494 views
0
How to eliminate and treat data that does not meet the requirements in Excel data

I'd like to read the specific sheet of Excel file (the name of the sheet has been decided) and determine whether the data should be imported.Exclusion of nonconforming data (extracting suitable data) ...

1 years ago

1 answers
274 views
0
Determine if the values in each column are included in the text

How do I determine if the values in each column are included in the text?import pandas as pddf = pd.DataFrame( data = { 'Context': ['Clear in Tokyo', 'Cloudy Kanagawa', 'Hot Okinawa Climate', Keywor...

1 years ago

1 answers
360 views
0
(Beginner) Python *Number of parameters

/Users/shardone/Desktop/Screen Shot 2023-02-15 PM 5.37.00.pngThe top is the guide.I coded the bottom.*How do I count the number of parameters?Error starting from the 16th.

1 years ago

1 answers
434 views
0
Some data is not registered in DB

I added data to sqlite using sqlalchemy.Only some data (in this case, password_hash) is not added and becomes null.I'm reviewing it myself, but I can't find any mistakes.Please point out any mistakes ...

1 years ago

1 answers
213 views
0
What is the purpose of using w in lines 4 to 6 of the code?

def median(x,y,z): print(x,y,z) if x>y: w = x x = y y=w print(x,y,z) if z<x: return x if z<y: return z returnyassert median(3,1,2) == 2

1 years ago

1 answers
271 views
0
Python while list 1 and list 2 are incomprehensible.

class solution:defaultTwoLists(self, list1: Optional [ListNode], list2: Optional [ListNode] - > Optional [ListNode]: cur=dummy=ListNode() while list1 and list2: if list1.val<list2.val: cur....

1 years ago

1 answers
409 views
0
I have a question about how to load and distinguish Python csv files.

I have to load the csv file and distinguish the data, but I can't think of a way, so I'm asking you a question. ㅜ분명히 I'm sure there's a way, but I don't know how to search it.There is a csv file ...

1 years ago

2 answers
349 views
0
I want to multiply some of the elements in a column by 2 in a data frame

The following data frames are available:I'd like to double the value in the second column.There is no index and item name, so What kind of code should I write?I would appreciate it if you could let me...

1 years ago

1 answers
384 views
0
After converting 'xlsx' file to 'nc' format, an error keeps popping up while saving.

ValueError: could not convert string to float: Error like 'One'The storage code is test_4d_array.to_netcdf('test (2010-2022).nc').

1 years ago

1 answers
411 views
0
I'd like to do a cross-examination. Please tell me how to do it.

import numpy as npimport pandas aspddf_maize=pd.read_csv(PSD online data maize.csv, thousands=',')]df_maize.corr()I was able to calculate the correlation coefficient, but there was an error in the fol...

1 years ago
« - 7 - »

© 2024 OneMinuteCode. All rights reserved.