Python’s Format Mini-Language for Tidy Strings

When you’re doing string interpolation in your Python code, you often need to format the interpolated values to meet some formatting requirements. To do this, Python provides what is known as the format mini-language, which defines the syntax of a format specifier. Perhaps you’re comfortable working with strings, but you want to take even more control of them. With proficiency in the format mini-language, you’ll be able to use format specifiers to do things like formatting numbers as currency values, […]

Read more

Profiling your Numba code

If you’re writing numeric Python code, Numba can be a great way to speed up your program. By compiling a subset of Python to machine code, Numba lets you write for loops and other constructs that would be too slow in normal Python. In other words, it’s similar to Cython, C, or Rust, in that it lets you write compiled extensions for Python. Numba code isn’t always as fast as it could be, however. This is where profiling is useful: […]

Read more

From Data to Map: Visualizing Ames House Prices with Python

Geospatial visualization has become an essential tool for understanding and representing data in a geographical context. It plays a pivotal role in various real-world applications, from urban planning and environmental studies to real estate and transportation. For instance, city planners might use geospatial data to optimize public transportation routes, while real estate professionals could leverage it to analyze property value trends in specific regions. Using Python, we can harness the power of libraries like geopandas, matplotlib, and contextily to create […]

Read more

Building Enumerations With Python’s enum

Some programming languages, such as Java and C++, have built-in support for a data type called enumerations, commonly referred to as enums. Enums enable you to create sets of logically related constants that you can access through the enumeration itself. Unlike these languages, Python doesn’t have a dedicated syntax for enums. However, the Python standard library provides an enum module that offers support for enumerations through the Enum class. If you’re familiar with enums from other languages and wish to […]

Read more

Announcing recipients of the AFMR Minority Serving Institutions grant

Today, as part of the Accelerate Foundation Models Research (AFMR) initiative, Microsoft is delighted to announce the 10 inaugural grant recipients through the AFMR Minority Serving Institutions grant program. This pilot focuses on supporting historically black colleges and universities (HBCUs) and Hispanic-serving institutions (HSIs), providing them with access to the state-of-the-art tools necessary to conduct meaningful and impactful research on AI. In addition to a grant award, recipients are  

Read more

Python Exceptions: An Introduction

Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Raising and Handling Python Exceptions A Python program terminates as soon as it encounters an error. In Python, an error can be a syntax error or an exception. In this tutorial, you’ll see what an exception is and how it differs from a syntax error. After that, you’ll learn about raising exceptions and making […]

Read more

Decoding Data: An Introduction to Descriptive Statistics with the Ames Housing Dataset

In this enlightening journey through the myriad lanes of Ames properties, we shine our spotlight on Descriptive Statistics, a cornerstone of Data Science. The study of the Ames properties dataset provides a rich landscape for implementing Descriptive Statistics to distill volumes of data into meaningful summaries. Descriptive statistics serve as the initial step in data analysis, offering a concise summary of the main aspects of a dataset. Their significance lies in simplifying complexity, aiding data exploration, facilitating comparative analysis, and […]

Read more

Abstracts: January 25, 2024

JORDAN ASH: Thanks for having us. DIPENDRA MISRA: Yeah, thanks for having us, Gretchen. HUIZINGA: Dipendra, let’s start with a general overview of this paper. In a few sentences, describe the issue or problem your work addresses and, perhaps more importantly, why we should care about it. MISRA: Thanks, Gretchen. So as we know, large language models, also known as LLMs, have revolutionized both business and research in artificial intelligence. They are everywhere, being used to solve a wide range […]

Read more

Machine Learning in OpenCV (7-Day Mini-Course)

Machine learning is an amazing tool for many tasks. OpenCV is a great library for manipulating images. It would be great if we can put them together. In this 7-part crash course, you will learn from examples how to make use of machine learning and the image processing API from OpenCV to accomplish some goals. This mini-course is intended for practitioners who are already comfortable with programming in Python, know the basic concept of machine learning, and have some background […]

Read more

Revealing the Invisible: Visualizing Missing Values in Ames Housing

The digital age has ushered in an era where data-driven decision-making is pivotal in various domains, real estate being a prime example. Comprehensive datasets, like the one concerning properties in Ames, offer a treasure trove for data enthusiasts. Through meticulous exploration and analysis of such datasets, one can uncover patterns, gain insights, and make informed decisions. Starting from this post, you will embark on a captivating journey through the intricate lanes of Ames properties, focusing primarily on Data Science techniques. […]

Read more
1 63 64 65 66 67 913