Python

Python Remove Duplicates from a List — step-by-step Python tutorial on Progressive Robot

Python Remove Duplicates from a List

URL: https://www.progressiverobot.com/python-remove-duplicates-from-list/ There are many ways to remove duplicates from a Python List. Using a temporary List and Looping Using [set() built-in method](/community/tutorials/python-set) Using [Dictionary](/community/tutorials/python-dictionary) Keys List count() function [List Comprehension](/community/tutorials/python-list-comprehension) Removing Duplicates from a List Python list can contain duplicate elements. Let's look into examples of removing the duplicate elements in different ways. 1. […]

Read more
Python os module — step-by-step Python tutorial on Progressive Robot

Python os module

URL: https://www.progressiverobot.com/python-os-module/ Python OS module provides easy functions that allow us to interact and get Operating System information and even control processes up to a limit. Python OS Module The functions OS module provides allows us to operate on underlying Operating System tasks, irrespective of it being a Windows Platform, Macintosh or Linux. In this […]

Read more
Pandas concat() Examples — step-by-step Python tutorial on Progressive Robot

Pandas concat() Examples

URL: https://www.progressiverobot.com/pandas-concat-examples/ Pandas concat() method is used to concatenate pandas objects such as DataFrames and Series. We can pass various parameters to change the behavior of the concatenation operation. 1. Pandas concat() Syntax The concat() method syntax is: concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False, keys=None, levels=None, names=None, verify_integrity=False, sort=None, copy=True) objs: a sequence of pandas objects […]

Read more
How To Crawl A Web Page with Scrapy and Python 3 — step-by-step Python tutorial on Progressive Robot

How To Crawl A Web Page with Scrapy and Python 3

Whether you want to mine data about a set of products, get a large corpus of text or quantitative data to play around with, get data from a site without an official API, or just satisfy your own personal curiosity, web scraping is a powerful way to work with data

Read more
How To Add Unit Testing to Your Django Project — step-by-step Python tutorial on Progressive Robot

How To Add Unit Testing to Your Django Project

Testing a website can be a complex task to undertake because it is made up of several layers of logic like handling HTTP requests, form validation, and rendering templates. However Django provides a set of tools that makes testing your web application seamless. In this tutorial, you will set up a test suite in your Django project and write unit tests for the models and views in your application. You will run these tests, analyze their results, and learn how to find the causes of failing tests.

Read more
How To Use *args and **kwargs in Python 3 — step-by-step Python tutorial on Progressive Robot

How To Use *args and **kwargs in Python 3

In this tutorial, we will cover the syntax of working with *args and **kwargs as parameters within functions to pass a variable number of arguments to a given function. Both can be used improve readability and convenience, and are best for situations where the number of inputs within the argument list will remain relatively small.

Read more
CHAT