Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python for Beginners: Rename Column by Index in Dataframes

Link: https://www.pythonforbeginners.com/basics/rename-column-by-index-in-dataframes

Dataframes are used to handle tabular data in python. In this article, we will discuss how we can rename a column by index in dataframes in python.
Change Column Name Using Index Number
We can access
Django Weblog: 2022 Django Developers Survey

Link: https://www.djangoproject.com/weblog/2022/sep/21/2022-django-developers-survey/

Please take a moment to fill it out the 2022 Django Developers Survey. We are once again partnering with JetBrains and it is available in 10 different languages.
The survey is an important metric of D
Real Python: What Does if __name__ == "__main__" Do in Python?

Link: https://realpython.com/if-name-main-python/

You’ve likely encountered Python’s if __name__ == "__main__" idiom when reading other people’s code. No wonder—it’s widespread! You might have even used if __name__ == "__main__" in your own scripts.
Ahmed Bouchefra: [3] Angular 14 Service for communicating with Contentful CMS

Link: https://efficientcoder.net/angular-service-communicate-cms/

In this tutorial, let’s now create the service that will encapsulate the code for communicating with Contentful. Go back to your command-line interface and run the following command to generate the se
Ahmed Bouchefra: [4] Angular 14 Routing and RxJS switchMap

Link: https://efficientcoder.net/angular-routing-switchmap/

In this tutorial, we’ll continue building our app with Angular 14 and Contentful. We’ll look at how to access route parameters using ParamMap and since our previous service method returns an observabl
Ahmed Bouchefra: [5] Transform data with Angular pipes

Link: https://efficientcoder.net/angular-pipe/

In this tutorial, we’ll see how to use a pipe in Angular 14 to transform and display data in our components’ templates.
Since under the How to apply part, we are displaying the content of the applyMet
Ahmed Bouchefra: How to add days to dates in JavaScript

Link: https://efficientcoder.net/howto-add-days-dates-javascript/

We can add days to dates in JavaScript as follows:

Call the JavaScript’ getDate() method to obtain the day of the month for the date.
Call the JavaScript’ setDate() method, and passing as a parameter
Ahmed Bouchefra: How to get current time zone in JavaScript

Link: https://efficientcoder.net/howto-get-current-time-zone-javascript/

You can get your time zone using JavaScript by using the Intl.DateTimeFormat object which is available in all modern browsers and returns the language-specific date and time formatting methods.
Here i
IslandT: Python Tutorial — Chapter 7

Link: https://islandtropicaman.com/wp/2022/09/22/python-tutorial-chapter-7/

In this chapter let us look at how to store various items within a tuple. A tuple is just like a list that can be used to store multiple items and then allows us to retrieve those items through its in
PyBites: Tips for Navigating the Job Hunt with Rhys Powell

Link: https://pybit.es/articles/pp88-job-hunting-tips/

Listen here:

The job hunt is on! With so many people looking to change things up with work, whether it be a new role, a new company, remote work – you name it – we decided it was time to talk a littl
Nicola Iarocci: Eve 2.0.2 released

Link: https://nicolaiarocci.com/eve-2.0.2-released/

Eve 2.0.2 was just released today. It fixes a problem introduced with v2.0 in which ETag generation failed if uuidRepresentation was not set in MONGO_OPTIONS. See issue #1486 for details. Many thanks
eGenix.com: Python Meeting Düsseldorf - 2022-09-28

Link: https://www.egenix.com/company/news/Python-Meeting-Duesseldorf-2022-09-28

The following text is in German, since we're announcing a regional user group meeting in Düsseldorf, Germany.

Ankündigung
Das nächste Python Meeting Düsseldorf findet an folgendem Termin statt:

28.0
Real Python: The Real Python Podcast – Episode #126: Python as an Efficiency Tool for Non-Developers

Link: https://realpython.com/podcasts/rpp/126/

Are you interested in using Python in an industry outside of software development? Would adding a few custom software tools increase efficiency and make your coworkers' jobs easier? This week on the s
Python for Beginners: Rename Columns in a Dataframe in Python

Link: https://www.pythonforbeginners.com/basics/rename-columns-in-a-dataframe-in-python

Pandas dataframes are one of the most efficient data structures to handle tabular data in python. When we import tabular data into dataframes from csv files, we usually need to rename the columns in t
PyCharm: PyCharm 2022.3 EAP 1 Is Out!

Link: https://blog.jetbrains.com/pycharm/2022/09/2022-3-eap-1/

We are launching the Early Access Program (EAP) for PyCharm 2022.3! This means that you can get access to the features that we are still polishing for the major release. We are looking forward to all
PyBites: Help, I need to refactor a mega class! Here are 5 tips …

Link: https://pybit.es/articles/tips-for-refactoring-a-mega-class/

Somebody asked the other day for tips on how to refactor a mega-class? It was actually one of the first tasks on the new job, ouch!
A single class, several thousands lines of code, no tests available
IslandT: Python Tutorial — Chapter 8

Link: https://islandtropicaman.com/wp/2022/09/24/python-tutorial-chapter-8/

In this chapter let us look at the python dictionary collection object. Python dictionary object has both key and value pair and it is used to store data. The key of the python dictionary is not dupli
Go Deh: Answering a Reddit Question with timings.

Link: http://paddy3118.blogspot.com/2022/09/answering-reddit-question-with-timings.html

Best viewed on larger than a phone screen. Someone had a problem on Reddit r/python:Hello guys, I want to find a string in a list and this list has 350K elements all they are strings . I want to find