Python for Beginners: Recursion In Python
You might have studied functions in python. You might also have used for loops and while loops to perform a task repetitively while programming in Python. In this article, we will discuss recursion and...
View ArticleKushal Das: Trouble with signing and notarization on macOS for Tumpa
This week I released the first version of Tumpa on Mac. Though the actual changes required for building the Mac app and dmg file were small, but I had to reap apart those few remaining hairs on my head...
View ArticleMikko Ohtamaa: Building a cryptocurrency site with Svelte, Python and...
This post is the repost of the original Trading Strategy software architecture overview for community feed aggregators. Please read the original post for the best layout and formatting.The audience of...
View ArticleReal Python: The Real Python Podcast – Episode #92: Continuing to Unravel...
A year ago, we had Brett Cannon on the show to discuss his blog series about unravelling Python's syntactic sugar. Brett has written 15 more entries in the series, and he returns to the show this week...
View ArticleMikko Ohtamaa: Building cryptocurrency site with Svelte, Python and TimescaleDB
This blog post is a repost of the original technical overview of the Trading Strategy protocol software stack for community feed aggregators. Please read the original blog post for the best layout and...
View ArticleArmin Ronacher: Rust Any Part 2: As-Any Hack
Yesterday I wrote about how to use the Any type in Rust to implement extension maps. One thing that was brought up as a response is that it's hard to implement Debug for the extension map as Any does...
View ArticleItsMyCode: Python String swapcase()
ItsMyCode |Python string swapcase() method is a built-in function that converts all uppercase characters into lowercase and all lowercase characters into uppercase characters of a given string and...
View ArticleTalk Python to Me: #347: Cinder - Specialized Python that Flies
The team at Instagram dropped a performance bomb on the Python world when they open-sourced Cider, their performance oriented fork of CPython. It contains a number of performance optimizations,...
View ArticleBrett Cannon: Unravelling `from` for `raise` statements
As part of my series on Python&aposs syntax, I want to tackle the from clause for raise statements. In case you&aposre unfamiliar, raise A from B causes B to be assigned to A.__cause__ which...
View ArticleItsMyCode: TypeError: list indices must be integers or slices, not str
ItsMyCode |If you are accessing the elements of a list in Python, you need to access it using its index position or slices. However, if you try to access a list value using a string Python will raise...
View ArticleJuri Pakaste: Async Swift and ArgumentParser
Swift 5.5 brought us async functions. ArgumentParser is the most popular way to write command line interfaces with Swift. Swift 5.5 supports an asynchronous main function, but ArgumentParser does not,...
View ArticleItsMyCode: [Solved] Python can’t Multiply Sequence by non-int of type...
ItsMyCode |The TypeError: can’t multiply sequence by non-int of type ‘float’ occurs if we use the multiply operator between a string and float value. In this tutorial, we will learn what exactly...
View ArticleItsMyCode: [Solved] Python can’t Multiply Sequence by non-int of type...
ItsMyCode |The TypeError: can’t multiply sequence by non-int of type ‘str’ occurs if we multiply a string by another string without converting into an integer or floating-point. In this tutorial, we...
View ArticleSebastian Pölsterl: scikit-survival 0.17 released
This release adds support for scikit-learn 1.0, which includes support for feature names. If you pass a pandas dataframe to fit, the estimator will set a feature_names_in_ attribute containing the...
View ArticleItsMyCode: No handles with labels found to put in legend
ItsMyCode |In Python matplotlib No handles with labels found to put in legend occur if you have not defined the label parameters whenever you plot the figure and try to call the plt.legend() method.The...
View ArticleItsMyCode: ValueError: If using all scalar values, you must pass an index
ItsMyCode |If you pass all scalar values while creating pandas Dataframe in Python, you will encounter “ValueError: If using all scalar values, you must pass an index“In this tutorial, we will learn...
View ArticleItsMyCode: [Solved] NameError: name ‘np’ is not defined
ItsMyCode |In Python, NameError: name ‘np’ is not defined occurs when you import the NumPy library but fail to provide the alias as np while importing it.In this article, let us look at what is...
View ArticleItsMyCode: [Solved] NameError: name ‘pd’ is not defined
ItsMyCode |In Python, NameError: name ‘pd’ is not defined occurs when you import the pandas library but fail to provide the alias as pd while importing it.In this article, let us look at what is...
View ArticleArmin Ronacher: Dependency Risk and Funding
I have a love/hate relationship with dependencies. I wrote about this extensively on this blog. Once about the challenges with scaling trust in dependencies and earlier about the problem with micro...
View ArticleItsMyCode: How to Fix: KeyError in Pandas?
ItsMyCode |The KeyError in Padas occurs when you try to access the columns in pandas DataFrame, which does not exist, or you misspell them. Typically, we import data from the excel name, which imports...
View Article