Finxter : Python
27  novembre     13h05
FIXED] TypeError: string indices must be integers
Shubham Sayon    Problem Statement: Why am I seeing TypeError: string indices must be integers? Reason: This error generally occurs when you use a string value to access an iterable object. In other words, it indicates that we are trying to access the value rom the index of an iterable using a string index instead...
25  novembre     17h13
Python le () Magic Method
Chris    Short summary: To customize the behavior of the less than or equal to operator x y, override the le () dunder method in your class definition. Python internally calls x. le (y) to obtain a return value when comparing two objects using x y. The return value can be any data type because...
24  novembre     11h23
Pandas Read and Write Excel Files
Kat McKelvie    Over your career as a Data Scientist, there may be instances where you will work with data to from a DataFrame to an Excel file. This article shows you how to manipulate this data using the above functions. This article covers the commonly used parameters for each function listed above. For a...
    11h05
Pandas Read and Write HTML Files
Kat McKelvie    Over your career as a Data Scientist or a Web Scraper, there may be instances where you will work with data to from a DataFrame to HTML format. This article shows you how to manipulate this data using the above functions. This article covers the commonly used parameters for each function listed...
    10h41
Cómo convertir una lista de enteros en una lista de cadenas en Python
Nacho Nunez    English version of article (English): https: blog.finxter.com how-to-convert-an-integer-list-to-a-string-list-in-python La forma más pitónica de convertir una lista de enteros ints en una lista de cadenas es usar el código de una là nea strings [str(x) for x in ints]. Recorre todos los...
    09h36
How to Make Division by Zero to Zero in Python?
Peter Rubio    In Python, division by zero generates the exception ZeroDivisionError: division by zero. This is because in mathematics, division by zero is undefined. Today we’ll go over some ways to avoid the zero division error in Python and force it to return a zero. First, we’ll look into exception handling...
    09h02
Ethereum Top 10 Articles to Get Started
Peter Rubio    Can you believe 5 years ago 1 ETH was priced at 9.33 USD? ETH is now on the rise, priced at 4270.66 USD with growth showing 45,673.42%. But wait, are you still not sure what Ethereum is? Perhaps you’ve heard of it but only have a vague idea. Not to worry. I’ve compiled a list ... Read more
    07h33
Python lt () Magic Method
Chris    Short summary: To customize the behavior of the less than operator x y, override the lt () dunder method in your class definition. Python internally calls x. lt (y) to obtain a return value when comparing two objects using x y. The return value can be any data type because any value can...
23  novembre     20h51
Python gt () Magic Method
Chris    Short summary: To customize the behavior of the greather than operator x y, override the gt () dunder method in your class definition. Python internally calls x. gt (y) to obtain a return value when comparing two objects using x y. The return value can be any data type because any value...
    15h46
Proper Indentation for Python Multiline Strings
Rikesh Nichani    Python Mutliline Strings In this article we are going to look at how to properly indent your code for Python multiline strings, so let’s start by clarifying what a multiline string is and why indentation is important. Readability for other users is one of the key requirements of writing effective...