Planet Python RSS
214 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
ItsMyCode: How to rename columns in Pandas DataFrame

Link: https://itsmycode.com/how-to-rename-columns-in-pandas-dataframe/

ItsMyCode |
 Pandas is a useful library in data analysis, and Pandas DataFrame is Two-dimensional, size-mutable, potentially heterogeneous tabular data. In this tutorial, let’s see how to rename colum
ItsMyCode: TypeError: ‘numpy.float64’ object cannot be interpreted as an integer

Link: https://itsmycode.com/typeerror-numpy-float64-object-cannot-be-interpreted-as-an-integer/

ItsMyCode |
The TypeError: ‘numpy.float64’ object cannot be interpreted as an integer occurs if you pass a float value to a function like range() which accepts only integer.
In this tutorial, let us l
ItsMyCode: Pandas : How to Find Unique Values in a Column

Link: https://itsmycode.com/pandas-how-to-find-unique-values-in-a-column/

ItsMyCode |
We can find unique values of a column in Pandas DataFrame using the unique() function.
The unique() method filters out only unique values from a column. In this tutorial, we will learn how
Podcast.__init__: An Exploration Of Effective Pandas Practices With Matt Harrison

Link: https://www.pythonpodcast.com/effective-pandas-book-episode-348/

Pandas has grown to be a ubiquitous tool for working with data at every stage. It has become so well known that many people learn Python solely for the purpose of using Pandas. With all of this activi
PyCon: Startup Row Applications Are Open, But Not For Long!

Link: https://pycon.blogspot.com/2022/01/pycon-startup-row-2022-applications.html

It’s official: PyCon 2022 in Salt Lake City will mark more than a decade of support for early-stage startups, and applications are now open! For the “do first and read later” folks reading this, apply
Python GUIs: Packaging PyQt5 applications for Windows, with PyInstaller & InstallForge (updated for 2022)

Link: https://www.pythonguis.com/tutorials/packaging-pyqt5-pyside2-applications-windows-pyinstaller/

There is not much fun in creating your own desktop applications if you can't share them with other people — whether than means publishing it commercially, sharing it online or just giving it to someon
ItsMyCode: Python PermissionError: [Errno 13] Permission denied

Link: https://itsmycode.com/python-permissionerror-errno-13-permission-denied/

If we provide a folder path instead of a file path while reading file or if Python does not have the required permission to perform file operations(open, read, write), you will encounter PermissionErr
Kay Hayen: Next Nuitka Live Stream

Link: https://nuitka.net/posts/next-nuitka-live-stream-30-01-2022.html

Today, Sunday 30.01.2022, there will be the third live stream of me
coding on Nuitka, and talking and chatting with visitors in the Discord
channel created specifically for this. I will go from 9-12 C
Armin Ronacher: Uninitialized Memory: Unsafe Rust is Too Hard

Link: http://lucumr.pocoo.org/2022/1/30/unsafe-rust

Rust is in many ways not just a modern systems language, but also quite
a pragmatic one. It promises safety and provides an entire framework that
makes creating safe abstractions possible with minima
ItsMyCode: How to Fix: module ‘pandas’ has no attribute ‘dataframe’

Link: https://itsmycode.com/how-to-fix-module-pandas-has-no-attribute-dataframe/

We get AttributeError: module ‘pandas’ has no attribute ‘dataframe’ when the Pandas module is unable to resolve and initialize the DataFrame class. The AttributeError usually occurs if the class is no
Mike Driscoll: PyDev of the Week: Sundeep Agarwal

Link: https://www.blog.pythonlibrary.org/2022/01/31/pydev-of-the-week-sundeep-agarwal/

This week we welcome Sundeep Agarwal (@learn_byexample) as our PyDev of the Week! Sundeep has authored more than 10 books about RegEx, Awk, Python and more! You can see what else Sundeep has been up t
Python GUIs: PySide2 vs PySide6: What are the differences, and is it time to upgrade?

Link: https://www.pythonguis.com/faq/pyside2-vs-pyside6/

If you are already developing Python GUI apps with PySide2, you might be asking yourself whether it's time to upgrade to PySide6 and use the latest version of the Qt library. In this article we'll loo
ItsMyCode: How to Add a Title to Seaborn Plots

Link: https://itsmycode.com/how-to-add-a-title-to-seaborn-plots/

There are four different methods to add a title to seaborn plots. Let us explore each of these methods in detail with examples.
Method 1: Using set() method
The set() method is used to add different e
ItsMyCode: How to Create a Pie Chart in Seaborn

Link: https://itsmycode.com/how-to-create-a-pie-chart-in-seaborn/

We do not have any built-in function to create Pie chart in seaborn, but with the help of Matplotlib, we can create a pie chart and leverage seaborn for color pallets.
A pie chart (or a circle chart)
ItsMyCode: How to Install Seaborn in Python using the Pip command

Link: https://itsmycode.com/install-seaborn-in-python-using-pip-command/

This tutorial will learn how to install Seaborn in Python using the Pip command.
Seaborn is a library for making statistical graphics in Python. It is built on top of matplotlib and closely integrated
Stack Abuse: Guide to enumerate() in Python - Easy for Loops with Counting

Link: https://stackabuse.com/guide-to-enumerate-in-python-forget-loops-with-counters/

Introduction
Looping with a counter variable/index - a classic in Computer Science! Typically, you'd either explicitly define a counter variable/index, and manually increment it on each loop, or you'd