PYTHON PANDAS loc[] & iloc[]

.loc[] .loc[]/ is used to select/access a subset from a DataFrame using row/column names. Syntax: <DataFrameObject>.loc[<start row>: <end row>,<start column>:<end column>] To access a row: <DF object>.loc[<row label>,:] To access multiple rows: <DF object>.loc[<start row>:<end row>,:] To access selective columns: <DF object>.loc[:,<start column>:<end column>] To access range of columns and rows: <DF object>.loc[<start row>:<end row>,<start … Continue reading PYTHON PANDAS loc[] & iloc[]

ZFILL IN PYTHON

The zfill() method adds zeros (0) at the beginning of the string, until it reaches the specific length. If the value of the len parameter is less than the length of the string, no filling is done. Syntax: string.zfill(len) parameter: len A number specifying the position of the element you want to remove. EXAMPLES: a=”hello” … Continue reading ZFILL IN PYTHON

STIRRING WEBSITES

This is a special and most interesting blog to read. Yeah…Let’s see the most useful websites that you wish you knew earlier. http://www.radio.garden/ – You can listen to radio stations anywhere in the world. http://www.mathway.com/ – A great site for students, it solves algebra, calculus, and even chemistry problems!! https://www.localingual.com/ – Listen to people’s voices … Continue reading STIRRING WEBSITES

TOP CAREER PATHS IN PYTHON

Which field you want to go after learning python. I have listed the top career paths in python. WEB DEVELOPMENT Python is a powerful language with simple and easy to learn syntax which makes it unique and popular among web developers. Python is a server side language. You need to learn frontend technology along with … Continue reading TOP CAREER PATHS IN PYTHON

PYTHON (PASSWORD GENERATOR)

Strong Password Generator to create secure passwords that are impossible to crack on your device without sending them across the Internet. import stringimport random #password generator function def generate_pass(passwrd_len):characters = string.ascii_letters + string.digits +string.punctuationcharacter = list(characters)random.shuffle(character)strong_pass = character[ : passwrd_len]return strong_passprint(“\n\n\n PASSWORD GENERATOR \n\n\n”)print(“How many characters do you want in your password?”)pass_len = int(input(“password length:”))passwrd = generate_pass(pass_len)print(“\n\n … Continue reading PYTHON (PASSWORD GENERATOR)

LINEAR REGRESSION-PYTHON

Linear regression is one of the supervised Machine learning algorithms in Python that observes continuous features and predicts an outcome. Depending on whether it runs on a single variable or on many features, we can call it simple linear regression or multiple linear regression. This is one of the most popular Python ML algorithms and often … Continue reading LINEAR REGRESSION-PYTHON

Design a site like this with WordPress.com
Get started