python-code

[ follow ]
Python
PythonSpeed
9 months ago
Python

Understanding CPUs can help speed up Numba and NumPy code

When you need to speed up your NumPy processing-or just reduce your memory usage-the Numba just-in-time compiler is a great tool.It lets you write Python code that gets compiled at runtime to machine code, allowing you to get the kind of speed improvements you'd get from languages like C, Fortran, or Rust.
Nedbatchelder
9 months ago
Python

Multi-syntax configuration examples

Coverage.pyreads settings from a number of different files, in either INI-file or TOML syntax, with different section headings depending on the file.This could be confusing: the docs showed the syntax needed for .coveragerc,but if you were using one of the other files, you had to mentally convert from one syntax to another.
Stack Abuse
9 months ago
Python

Reading and Writing SQL Files in Pandas

When I started learning Data Analysis a few years ago, the first thing I learned was SQL and Pandas.As a data analyst, it is crucial to have a strong foundation in working with SQL and Pandas.Both are powerful tools that help data analysts efficiently analyze and manipulate stored data in databases.
Python Software Foundation Blog
9 months ago
Python

The Python Language Summit 2023: What is the Standard Library for?

Brett Cannon came to the Python Language Summit this year with a fundamental question for the assembled core developers: What is the standard library for?According to a quick python -c "import sys; print(len(sys.stdlib_module_names))"call on my laptop, the standard library in Python 3.11 consists of 305 importable modules.
ListenData
10 months ago
Python

Complete Guide to Massively Multilingual Speech (MMS) Model

In this article we have covered everything about the latest multilingual speech model from the basics of how it works to the step-by-step implementation of the model in Python.Meta, the company that owns Facebook, released a new AI model called Massively Multilingual Speech (MMS) that can convert text to speech and speech to text in over 1,100 languages.
CodersLegacy
10 months ago
Python

TQDM: Tracking the Progress of your Python Program - CodersLegacy

TQDM is a Python library that stands for "progress" in Arabic.As the name implies, it is an excellent tool for tracking the progress of long-running loops and code execution, giving you insights into how far along your code is in its execution.In this article, we will explore the use of TQDM, how to use it, and the extra configuration options that are available.
morePython
dependencies
Pythonbytes
9 months ago
Python

Actual Technical People

About the show Sponsored by InfluxDB from Influxdata.Connect with the hosts Join us on YouTube at pythonbytes.fm/live to be part of the audience.Usually Tuesdays at 11am PT.Older video versions available there too.PyStack is a tool that uses forbidden magic to let you inspect the stack frames of a running Python process or a Python core dump, helping you quickly and easily learn what it's doing.
Tall, Snarky Canadian
9 months ago
Python

In response to the Changelog #526

In episode 526 of the Changelog podcast entitled, "Git with your friends", they discussed various tools involving git (disclaimer: I have been on the podcast multiple times and had dinner with the hosts of the podcast the last time they were in Vancouver).Two the projects they discussed happened to be written in Python.
Talkpython
1 year ago
Python

Hatch: A Modern Python Workflow

In recent years, there has been a lot of experimenting how we work with dependencies and external libraries for our Python code.There is pip, pip-tools, Poetry, pdm, pyenv, pipenv, Hatch and others workflows.We dove into this deeply back on episode 406: Reimagining Python's Packaging Workflows.We're back with Ofek Lev to take a deeper look at Hatch.
Pythonbytes
1 year ago
Python

We are going to need some context here

About the show Sponsored by Microsoft for Startups Founders Hub.Connect with the hosts Join us on YouTube at pythonbytes.fm/live to be part of the audience.Usually Tuesdays at 11am PT.Older video versions available there too.Part of standard library since 3.5
Yet another thing I learned recently from Brett Cannon
"This module provides tools to manage the creation of zip files containing Python code, which can be executed directly by the Python interpreter.
Machine Learning Mastery
2 years ago
Artificial intelligence

Static Analyzers in Python - Machine Learning Mastery

Last Updated on March 30, 2022
Static analyzers are tools that help you check your code without really running your code.
moredependencies
ListenData
9 months ago
Python

Transformers Agent: AI Tool That Automates Everything

We have a new AI tool in the market called Transformers Agent which is so powerful that it can automate just about any task you can think of.It can generate and edit images, video, audio, answer questions about documents, convert speech to text and do a lot of other things.Hugging Face, a well-known name in the open-source AI world, released Transformers Agent that provides a natural language API on top of transformers.
App Developer Magazine
10 months ago
Artificial intelligence

AI VS code extension from Metabob speeds up code review| App Developer Magazine

Metabob announced a new artificial intelligence (AI)-powered virtual studio code (VSCode) extension for its debugging and refactoring tool that speeds software development code review by 60%.It provides users with useful context-sensitive code recommendations to fix errors right in the integrated development environment (IDE), and it is specifically trained to fix code generated by AI tools, such as GitHub Copilot and ChatGPT.
PythonSpeed
10 months ago
Python

Goodbye to Flake8 and PyLint: faster linting with Ruff

Flake8 and PyLint are commonly used, and very useful, linting tools: they can help you find potential bugs and other problems with your code, aka "lints".But they can also be slow.And even if they're fast on your computer, they may still be slow in your CI system (GitHub Actions, GitLab, or whatever else.)
Happily, there's a new linter available, Ruff, which is much faster.
Tall, Snarky Canadian
1 year ago
Python

Unravelling assignment expressions

As part of my series on Python's syntactic sugar, I initially skipped tackling conditional expressions because I made them more complicated than I needed to in my head.😅 But there is some key subtlety to unravelling them which may not be obvious.Let's start with a simple example of an assignment expression inside of a function call:
Example Python code of an assignment expression inside of a function call  Now naively you might think you can just lift that assignment expression out to be an assignment statement and things would just work, like so:
Naively moving the assignment expression out of the function call's parameter list  Unfortunately this doesn't work for more complicated examples.
Machine Learning Mastery
1 year ago
Artificial intelligence

Developing a Python Program Using Inspection Tools - Machine Learning Mastery

Last Updated on May 30, 2022
Python is an interpreting language.It means there is an interpreter to run our program, rather than compiling the code and running natively.
Pythonmorsels
1 year ago
Python

String Formatting Techniques

By Trey Hunner
You can consider this a cheat sheet to string formatting in Python.
Not sure what string formatting is?See string concatenation and string interpolation in Python.
Talkpython
9 months ago
Python

How To Keep A Secret in Python Apps

Think about the different APIs and databases your application works with.Every one of them requires either an API key or a database connection string that itself contains a password.How do you let your application access this sensitive information without storing it in source code or putting in other compromising locations?
CodersLegacy
10 months ago
Python

How to add image (data) files in Pyinstaller EXE - CodersLegacy

Pyinstaller is a popular tool used by Python developers to convert their Python code into a standalone executable file that can be run on any machine without the need for Python to be installed.When creating an executable using Pyinstaller, it is often necessary to include additional "data" files such as an image, configuration file, and other resources that are required by the application.
Raymondcamden
1 year ago
Vue

Building an API to List Cloudinary Images in a Folder

I was preparing to work on a Cloudinary and Apline post when I realized I needed something before I could build that demo - a list of images in a Cloudinary folder.While this is directly supported by their SDKs and REST APIs, I needed something that could be used in a public-facing web application.So with that in mind, I turned to Pipedream to build a serverless endpoint.
Amazon Web Services
1 year ago
DevOps

Build Health Aware CI/CD Pipelines | Amazon Web Services

At the moment of imminent failure, you want to avoid an unlucky deployment.I'll start here with a short story that demonstrates the purpose of this post.
PythonSpeed
1 year ago
Python

When Python can't thread: a deep-dive into the GIL's impact

Most computers these days come with multiple cores, allowing multiple threads to run computations in parallel.
Talkpython
9 months ago
Python

Test-Driven Prompt Engineering for LLMs with Promptimize

Large language models and chat-based AIs are kind of mind blowing at the moment.Many of us are playing with them for working on code or just as a fun alternative to search.But others of us are building applications with AI at the core.And when doing that, the slightly unpredictable nature and probabilistic nature of LLMs make writing and testing Python code very tricky.
DevOps.com
1 year ago
Artificial intelligence

In DevOps, Chatbots are a People Problem

By: Don Macvittie on
By now, you are undoubtedly aware that you can call up a chatbot or install an AI assistant into your IDE and generate entry-level code and deployment scripts.Indeed, if you just go to a site like ChatGPT and enter "generate Python code to do X" where X is something you need to be done-or an example like "read a file and print out the contents one line at a time," it will do it.
Zato
1 year ago
Python

Zato Blog

Microsoft 365 requires for all IMAP connections to use OAuth2.This can be challenging to configure in server-side automation and orchestration processes so Zato offers an easy way that lets you read and send emails without a need for getting into low-level OAuth2 details.Consider a common orchestration scenario - a business partner sends automated emails with attachments that need to be parsed, some information needs to be extracted and processed accordingly.
Erik Marsja
1 year ago
Python

Psychomotor Vigilance Task (PVT) in PsychoPy

In this PsychoPy tutorial, you will learn how to create the Psychomotor Vigilance Task (PVT) using some but not that much coding.
Theregister
1 year ago
Information security

Attackers cause Discord discord with malicious npm packages

Cybercriminals continue to use npm packages to drop malicious packages on unsuspecting victims, most recently to steal Discord login tokens, bank card data, and other user information from infected systems.
The Python Podcast.__init__
1 year ago
Python

Gain A Deeper Understanding Of What Your Code Is Doing And Where It Spends Its Time With VizTracer

As your code scales beyond a trivial level of complexity and sophistication it becomes difficult or impossible to know everything that it is doing.
Engadget
10 months ago
Artificial intelligence

Google I/O 2023: Everything announced at the event | Engadget

To say the Google I/O 2023 keynote was packed would be an understatement.Google unveiled a flurry of new Pixel devices as well as the latest versions of Android and other platforms.It also won't surprise you to hear that AI was everywhere - this was Google's big chance to compete with OpenAI's ChatGPT.
Theregister
1 year ago
Artificial intelligence

OpenAI debuts GPT-4, an AI that will beat '90% in an exam'

OpenAI on Tuesday announced the qualified arrival of GPT-4, its latest milestone in the making of call-and-response deep learning models and one that can seemingly outperform its fleshy creators in important exams.According to OpenAI, the model exhibits "human-level performance on various professional and academic benchmarks."
TNW | Neural
1 year ago
Artificial intelligence

DeepMind's new Gato AI makes me fear humans will never achieve AGI

Editor, Neural by TNW
Tristan covers human-centric artificial intelligence advances, quantum computing, STEM, Voltron, physics, and space stuff.
Machine Learning Mastery
2 years ago
Artificial intelligence

Calculus for Machine Learning (7-day mini-course) - Machine Learning Mastery

Last Updated on March 16, 2022
Calculus is an important mathematics technique behind many machine learning algorithms.You don't always need to know it to use the algorithms.
Machine Learning Mastery
2 years ago
Artificial intelligence

Command line arguments for your Python script - Machine Learning Mastery

Last Updated on February 26, 2022
Working on a machine learning project means we need to experiment.Having a way to configure your script easily will help you move faster.
PythonForBeginners.com
1 year ago
Python

Convert Dictionary to INI File in Python - PythonForBeginners.com

INI files are primarily used as a file format for configuration files.In this article, we will discuss how to convert a python dictionary to an INI file using the configparser module.What is the INI File Format?INI format, short for Initialization format, is a simple text file format used to store configuration settings for software applications.
Raymondcamden
1 year ago
Vue

Another Week, Another Mastodon Bot - Random Album Cover

Last September, I blogged about how I used the Spotify API and Pipedream to discover new music: Discover New Music with the Spotify API and Pipedream.I used a Pipedream workflow to select a random track from Spotify and email me a track every morning.I've still got this process running and I enjoy seeing it every morning.
Python
1 year ago
Python

Introducing the Data Wrangler extension for Visual Studio Code Insiders - Python

Jeffrey Mew
We're excited to announce the launch of Data Wrangler, a revolutionary tool for data scientists and analysts who work with tabular data in Python.Data Wrangler is an extension for VS Code Insiders and the first step towards our vision of simplifying and expediting the data preparation process on Microsoft platforms.
Talkpython
1 year ago
Python

Fusion Ignition Breakthrough and Python

Imagine a world with free and unlimited clean energy.That's the musings of a great science fiction story.But nuclear fusion (the kind that powers the sun) has always been close at hand, we see the sun every day, and yet impossibly far away as a technology.We took a major step towards this becoming a reality with the folks at the Lawrence Livermore National Labratory in the US achieved "ignition" where they got significantly more energy out than they put in.
Stack Abuse
1 year ago
Python

Loops in Python

Introduction
A programming language typically consists of several types of basic elements, such as assignments, conditionals, and loops.The idea behind a loop is to repeat a segment of code that is in the body of the loop.Different kinds of loops are common.For example, loops will run:


while a specified condition is true (i.e. while the condition is met, do something)
until a certain condition is met (i.e.
Coding Dojo
1 year ago
Software development

What Is Pandas In Python? A Guide For Beginners - Coding Dojo

Considering becoming a data scientist?Learning Python Pandas is a great first step.This open-source tool is a cornerstone of the data science world, offering powerful features and capabilities for manipulating, analyzing, and visualizing data.In this article, we'll provide you with the essential information you need to know about Python Pandas, including how it's used, how it works, and how to install it on Mac or Windows.
CodersLegacy
1 year ago
Python

Nuitka vs Pyinstaller for Python EXE's - CodersLegacy

In this article, we will compare two popular Python libraries used for creating standalone executables, Nuitka and Pyinstaller.This "Nuitka vs Pyinstaller" article will directly compare both libraries on things like "load time", "performance", "space", etc.By the end of this article, we you will understand the benefits of each library, and which one you ought to be using.
Mouse Vs Python
1 year ago
Python

PyDev of the Week: Irit Katriel - Mouse Vs Python

This week we welcome Irit Katriel ( Core Dev who works at Microsoft.Irit helped write up @IritKatriel ) as our PyDev of the Week!Irit is a CPython PEP 654, which is about "Exception Groups and except*" and was released in Python 3.11 this year.This new feature "reduced the time it takes to raise and catch an exception by about 10%".
Coding Dojo
1 year ago
Software development

The Magic That Runs Your Code: Python Interpreters - Coding Dojo

To a beginner, programming languages can be foreign and confusing.But, as many coders can attest, learning new programming languages is actually one of the easier aspects of software development.
InfoWorld
1 year ago
Data science

Use Cython to accelerate array iteration in NumPy

NumPy is known for being fast, but could it go even faster?Here's how to use Cython to accelerate array iterations in NumPy.
Machine Learning Mastery
1 year ago
Artificial intelligence

Python for Machine Learning (7-day mini-course) - Machine Learning Mastery

Last Updated on June 2, 2022
Python is an amazing programming language.
Stack Abuse
1 year ago
Python

Three Ways to Create Multiline Strings in Python

Introduction
Multiline strings are a useful feature in Python that allow you to create strings that span multiple lines of code.They can be especially helpful when you need to create long or complex strings, such as for formatting text, writing documentation, or storing data.In this article, we'll explore three different methods for creating multiline strings in Python.
GitHub
1 year ago
JavaScript

GitHub - paulfranceschi/taxonomy-of-concepts-for-AI: Taxonomy of common concepts based on matrices of concepts, for AI improvement

The aim of this project is to create a library in Python based on a taxonomy of commonly used concepts, so that it can be used for artificial intelligence (AI) improvement.Compelling though it is, in most cases, the GPT model answers questions like these incorrectly:
With which concept is blissful optimism in the same type of relationship as subjectivity and objectivity?
betterdatascience.com
1 year ago
JavaScript

Introducing PyScriptHow to Run Python in Your Browser

Article thumbnail (image by author) Anaconda's CEO Peter Wang revealed something pretty interesting during PyCon US 2022.
Talkpython
1 year ago
Python

Ruff - The Fast, Rust-based Python Linter

Our code quality tools (linters, test frameworks, and others) play an important role in keeping our code error free and conforming to the rules our teams have chosen.But when these tools become sluggish and slow down development, we often avoid running them or even turn them off.On this episode, we have Charlie Marsh here to introduce Ruff, a fast Python linter, written in Rust.
Paolo Amoroso's Journal
1 year ago
Python

Troubleshooting a Suite8080 assembler bug

The iLoad feature of the Z80-MBC2 homebrew Z80 computer allows uploading binary code that runs on the bare metal.I thought it would be fun to try iLoad with some Intel 8080 code generated by the asm80 assembler of Suite8080, the suite of 8080 Assembly cross-development tools I'm writing in Python.But the code crashed the Z80-MBC2, uncovering a major asm80 bug.
Zato
1 year ago
Python

Zato Blog

An integral part of Zato, its scalable, service-oriented scheduler makes it is possible to execute high-level API integration processes as background tasks.The scheduler runs periodic jobs which in turn trigger services and services are what is used to integrate systems.In this article we will check how to use the scheduler with three kinds of jobs, one-time, interval-based and Cron-style ones.
PyBites
1 year ago
Python

Reflections On The Zen Of Python - PyBites

An initial version of this article appeared as a Pybites email first.If you like it join our friends list to get our valuable Python, developer and mindset content first ... How following the Zen of Python will make your code better, a lot better.This epic set of axioms (triggered by typing import this in the Python REPL) says a lot about code quality and good software design principles.
CodersLegacy
1 year ago
Python

Ctypes vs Python - Performance Comparison - CodersLegacy

Python Ctypes is a foreign function library that allows Python code to call C or C++ functions directly.This can be useful for improving the performance of Python code, particularly when working with large data sets or computationally intensive tasks.In this Article we will be doing a Performance Comparison between Native Python Code and Python + Ctypes Code.
Python
1 year ago
Python

Python in Visual Studio Code - December 2022 Release

Courtney Webster
We're excited to announce that the December 2022 release of the Python and Jupyter extensions for Visual Studio Code are now available!This release includes the following announcements:


     Auto indentation with Pylance
     Preview: Python in the browser
     Community Highlight: Ruff


If you're interested, you can check the full list of improvements in our changelogs for the Python, Jupyter and Pylance extensions.
Luke Plant's home page
1 year ago
Python

Tools for rewriting Python code

When writing (or reviewing) code, you have better things to do than concern yourself with low-level details about coding style or other changes that are essentially mechanical in nature.Thankfully, the tooling ecosystem for doing these kind of boring changes to Python code has become much stronger in the past few years.
Treehouse Blog
1 year ago
Web development

Are Coding Bootcamps Worth It? How to Start a Career in Code | Treehouse

Now that you're ready to become a developer, you may be wondering if coding bootcamps are worth it.It's important to make the right choice for your education.While there are different means like college degrees and self-taught tracks, coding bootcamps are continuing to grow in popularity.When you enroll in an online coding bootcamp, you learn all of the necessary development skills within a short period.
Treehouse Blog
1 year ago
Web development

Java vs. Python: Complete Guide [Article] | Treehouse Blog

While Java and Python have both been around for decades, they're still the programming languages of choice for many projects.
Sebastian Witowski
in 5 years
Python

How to Benchmark (Python) Code

While preparing to write the "Writing Faster Python" series, the first problem I faced was "How do I benchmark a piece of code in an objective, yet uncomplicated way".I could run python -m timeit <piece of code> which is probably the simplest way of measuring how long it takes to execute some code.
PyBites
1 year ago
Python

Tips For Clean Code In Python - PyBites

In this article I will give you 10 tips for cleaner code.Hope this helps improve your Python code.
1.Smaller units.Break long functions (methods) into multiple smaller ones that do one thing ( SRP or "Single-responsibility principle").This will make your code more modular and easier to test.
Pythonmorsels
1 year ago
Python

SyntaxError: invalid syntax

Trey Hunner 14 min.read * Python 3.7-3.11Tags

It's a sadly unhelpful error message and it's one that you'll see quite often when learning Python.What does SyntaxError: invalid syntax mean?What is Python trying to tell you with this error and how can you fix your code to make Python happy?What is a SyntaxError in Python?
Zero To Mastery
1 year ago
Python

[October 2022] Python Monthly Newsletter | Zero To Mastery

35th issue!If you missed the previous ones, you can read all the previous issues of my monthly Python newsletter here.If it's your first time here... (otherwise, skip this part)
Being a Python developer is a fantastic career option.Python is now the most popular language with lots of growing job demand (especially in the fields of Web, Data Science and Machine Learning).
TechRepublic
1 year ago
Information security

Cranefly uses new communication technique in attack campaigns

A new publication from Symantec, a Broadcom software company, reveals details about a new method used by the Cranefly threat actor to communicate with its malware in ongoing attack campaigns.Geppei malware receives orders from IIS log files
A previously unreported dropper named Trojan.Geppei by Symantec has been observed on several victims of the attack campaigns.
Theregister
1 year ago
Python

Python team wraps version 3.11.0

Python 3.11.0, the latest iteration of the exceedingly popular programming language, debuted on Monday, to the delight of software developers who care about such things."In the CPython release team, we have put a lot of effort into making 3.11 the best version of Python possible," said Pablo Galindo Salgado, a Python steering council member, via Twitter.
Codementor
1 year ago
Python

Quick Tips to Make Your Python Better Right Away | Codementor

Quick Tips to Make your Python Better Right Away
Use a formatter - The first quick way to make your python code better to work with is to use a formatter.Consistent looking code is easy to scan.
Islandtropicaman
1 year ago
Python

wxPython Tutorial - Create Combo Box

In this wxPython tutorial let us create a daily combo box beside the hello world button.
InfoWorld
5 years ago
Data science

A beginner's guide to using Observable JavaScript, R, and Python with Quarto

There's an intriguing new option for people who want to do data-wrangling and analysis in R or Python but visualization in JavaScript: Quarto.
Medium
1 year ago
Data science

Discover the Latest Possibilities in AI at ODSC Europe's Virtual AI Expo

This year for ODSC Europe, we're proud to announce we have a lot of great partners ready to share their knowledge and products with data professionals at the AI Expo & Demo Hall this June 15th-16th.
Medium
2 years ago
Data science

Supercharge Your Pandas Code with Apache Spark

Pandas is a fast and powerful open-source data analysis and manipulation framework written in Python.
Pythonmorsels
1 year ago
Python

Unindenting multi-line strings in Python

Let's talk about how to create a multi-line string in Python without accidentally indenting the text within that string.
Manually dedenting multi-line strings
Thegreenplace
1 year ago
Python

Python FFI with ctypes and cffi

In a previous post, I demonstrated how to use libffi to perform fully dynamic calls to C code, where "fully dynamic" means that even the types of the arguments and return values are determined at runtime.
Islandtropicaman
1 year ago
Python

Python Datetime Module

Python datetime module allows you to create an datetime object or get the date of a particular day.Let me create a few examples to demonstrate to you how to use the methods of this DateTime module.
Codementor
1 year ago
Python

How Edo Guida got a Python job in three months with no programming background | Codementor

Read this story to learn the roadmap you could follow to get a python job where you can take your skills to the next level while you get paid.
Zero To Mastery
1 year ago
Python

[September 2022] Python Monthly Newsletter | Zero To Mastery

If it's your first time here... (otherwise, skip this part)
Being a Python developer is a fantastic career option.
Pythonbytes
1 year ago
Python

A Jupyter merge driver for git

Sponsored by Microsoft for Startups Founders Hub.
Special guest: Seth Larson
Brian #1: Test your packages and wheels
Python
1 year ago
Python

Python in Visual Studio Code - September 2022 Release

Erik De Bonte We're excited to announce that the September 2022 release of the Python and Jupyter extensions for Visual Studio Code are now available!
Zero To Mastery
1 year ago
Python

[August 2022] Python Monthly Newsletter | Zero To Mastery

33rd issue!If you missed the previous ones, you can read all the previous issues of my monthly Python newsletter here.
ItsMyCode
1 year ago
Python

ModuleNotFoundError: No module named 'six' - ItsMyCode

In Python, ModuleNotFoundError: No module named 'six' error occurs if we try to import the 'six' module without installing the package or if you have not installed it in the correct environment.
ItsMyCode
1 year ago
Python

ModuleNotFoundError: No module named 'IPython' - ItsMyCode

In Python, ModuleNotFoundError: No module named 'IPython' error occurs if we try to import the 'ipython' module without installing the package or if you have not installed it in the correct environment.
Python
1 year ago
Python

Python in Visual Studio Code - August 2022 Release

We're excited to announce that the August 2022 release of the Python and Jupyter extensions for Visual Studio Code are now available!
This release includes the following improvements:
The Python Podcast.__init__
1 year ago
Python

Stream Processing In Real Time And At Scale In Pure Python With Bytewa

Analysis of streaming data in real time has long been the domain of big data frameworks, predominantly written in Java.
Pythonmorsels
1 year ago
Python

Appreciating Python's match-case by parsing Python code

I stayed up past my bedtime recently and made a script and later a web app to convert a dataclass to a non-dataclass.
PythonSpeed
1 year ago
Python

Pandas vectorization: faster code, slower code, bloated memory

When you're processing data with Pandas, so-called "vectorized" operations can significantly speed up your code.Or at least, that's the theory.
TechRepublic
1 year ago
Business intelligence

Google Colab vs Jupyter Notebook: Compare data science software

Learn whether Jupyter Notebook or Google Colab would be better for your data science needs in this in-depth feature comparison.
MUO
1 year ago
Software development

5 Things to Do When You Get Stuck Learning to Code

Learning to code can be boring when the going gets tough, especially if you get stuck on a particular coding task.
Pythonmorsels
1 year ago
Python

Reading binary files in Python

What if you wanted to read from a file that isn't a text file?
How to read a binary file in Python
Aroberge
1 year ago
Python

Python fun with emojis

At EuroSciPy in 2018, Marc Garcia gave a lightning talk which started by pointing out that scientific Python programmers like to alias everything, such as
PythonForBeginners.com
1 year ago
Python

How to Clear a Text File in Python - PythonForBeginners.com

While programs are often used to create files, there are times when programmers also need to erase file data.Luckily, there are multiple ways to clear text from a file.
Pythonmorsels
1 year ago
Python

Unicode character encodings

By Trey Hunner
All text that comes from outside of your Python process starts as binary data.
All input starts as raw bytes
Alistair Shepherd
1 year ago
UX design

SVG generative mountain ridge dividers - Alistair Shepherd

This is another post about the build of this website.Check out the other posts in the my site tag.
Today, I wanted to write a little about the section dividers used on my site.These ones:
Pythonmorsels
1 year ago
Python

What are hashable objects?

By Trey Hunner
What are hashable objects?
Sets items must be hashable
The elements in a set must be hashable.
Strings and numbers are hashable:
Tuples of strings and numbers are also hashable:
The Python Coding Book
1 year ago
Python

Debugging Python Code Is Like Detective Work - Let's Investigate

Debugging Python code is not a mysterious art form.It's like a detective solving a mystery.
The Python Coding Book
1 year ago
Python

Understanding Two-Point Perspective Drawing Using Python

Have you ever struggled to truly understand a topic?Perhaps one related to your work, or maybe linked to a hobby?
Jqueryscript
1 year ago
jQuery

Weekly Web Design & Development News: Collective #443

Here's the 443rd Weekly Web Design & Development Collective that aims to introduce fresh new, trendy and easy-to-use web design & development resources (freebies, codes, graphics, tools, inspiration, etc) from the past week.
PythonForBeginners.com
2 years ago
Python

List of Lists in Python - PythonForBeginners.com

Lists are used in python to store data when we need to access them sequentially.In this article, we will discuss how we can create a list of lists in python.
The Python Coding Book
2 years ago
Python

Building Starships in Star Trek | Classes and Objects in Python

With so many new Star Trek series coming out at the moment and in the near future, new and old Trekkies are all asking the same question: How do they build the starships in the Star Trek universe?
Paoloamoroso
2 years ago
Python

Suite8080 0.5.0

Version 0.5.0 of Suite8080 is out, and the package is available on PyPI.Suite8080 is a suite of Intel 8080 Assembly cross-development tools I'm writing in Python.
Pythonmorsels
2 years ago
Python

What is an iterator?

By Trey Hunner
What is an iterator?
Generator objects are iterators
Here we have a generator expression called squares:
...
Generator expressions give us back generator objects:
[ Load more ]