Python tutorials

How to Create Pivot Tables With pandas

A pivot table is a data analysis tool that allows you to take columns of raw data from a pandas DataFrame, summarize them, and then analyze the summary data to reveal its insights. Pivot tables allow you to perform common aggregate statistical calculations such as sums, counts, averages, and so on. Often, the information a pivot table produces reveals trends and other observations your original raw data hides. Pivot tables were originally implemented in early spreadsheet packages and are still […]

Read more

Quiz: How to Create Pivot Tables With pandas

Interactive Quiz ⋅ 10 QuestionsBy Ian Eyre Share Or copy the link: Copied! Happy Pythoning! In this quiz, you’ll test your understanding of how to create pivot tables with pandas. By working through this quiz, you’ll review your knowledge of pivot tables and also expand beyond what you learned in the tutorial. For some of the questions, you’ll need to do some research outside of the tutorial itself. The quiz    

Read more

The Python calendar Module: Create Calendars With Python

The Python calendar module provides several ways to generate calendars for Python programs. It also includes a variety of functions for working with calendar data as strings, numbers, and datetime objects. In this tutorial, you’ll learn how to use the calendar module to create and customize calendars with Python. By the end of this tutorial, you’ll be able to: Display calendars in your terminal with Python Create plain text and HTML calendars Format calendars for specific locales and display conventions […]

Read more

Building a Python GUI Application With Tkinter

Python has a lot of GUI frameworks, but Tkinter is the only framework that’s built into the Python standard library. Tkinter has several strengths. It’s cross-platform, so the same code works on Windows, macOS, and Linux. Visual elements are rendered using native operating system elements, so applications built with Tkinter look like they belong on the platform where they’re run. Although Tkinter is considered the de facto Python GUI framework, it’s not without criticism. One notable criticism is that GUIs […]

Read more

Basic Data Types in Python: A Quick Exploration

Python has several basic data types that are built into the language. With these types, you can represent numeric values, text and binary data, and Boolean values in your code. So, these data types are the basic building blocks of most Python programs and projects. In this tutorial, you’ll learn only the basics of each data type. To learn more about a specific data type, you’ll find useful resources in the corresponding section. Python’s Basic Data Types Python has several […]

Read more

Quiz: What Are CRUD Operations?

Interactive Quiz ⋅ 6 QuestionsBy Philipp Acsany Share Or copy the link: Copied! Happy Pythoning! In this quiz, you’ll test your understanding of CRUD Operations. By working through this quiz, you’ll revisit the key concepts and techniques related to CRUD operations. Good luck! The quiz contains 6 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive    

Read more

Python’s Built-in Exceptions: A Walkthrough With Examples

Python has a complete set of built-in exceptions that provide a quick and efficient way to handle errors and exceptional situations that may happen in your code. Knowing the most commonly used built-in exceptions is key for you as a Python developer. This knowledge will help you debug code because each exception has a specific meaning that can shed light on your debugging process. You’ll also be able to handle and raise most of the built-in exceptions in your Python […]

Read more

HTML and CSS Foundations for Python Developers

When you want to build websites as a Python programmer, there’s no way around HTML and CSS. Almost every website on the Internet is built with HTML markup to structure the page. To make a website look nice, you can style HTML with CSS. If you’re interested in web development with Python, then knowing HTML and CSS will help you understand web frameworks like Django and Flask better. But even if you’re just getting started with Python, HTML and CSS […]

Read more

What Is the __pycache__ Folder in Python?

When you develop a self-contained Python script, you might not notice anything unusual about your directory structure. However, as soon as your project becomes more complex, you’ll often decide to extract parts of the functionality into additional modules or packages. That’s when you may start to see a __pycache__ folder appearing out of nowhere next to your source files in seemingly random places: project/ │ ├── mathematics/ │ │ │ ├── __pycache__/ │ │ │ ├── arithmetic/ │ │ ├── […]

Read more

PyTorch vs TensorFlow for Your Python Deep Learning Project

PyTorch vs TensorFlow: What’s the difference? Both are open-source Python libraries that use graphs to perform numerical computations on data in deep learning applications. Both are used extensively in academic research and commercial code. Both are extended by a variety of APIs, cloud computing platforms, and model repositories. If they’re so similar, then how do you decide which one is best for your project? You’ll start by taking a close look at both platforms, beginning with the slightly older TensorFlow. […]

Read more
1 14 15 16 17 18 182