Python: Learning Subclasses ver. 2

Last Updated on August 13, 2022 by shibatau

I. Creating a basic class

I have created a simple class shown below. The codes might look complicated if you are new to Python Classes. Don’t worry. Just think this is a template for a class.

You may understand the structure of a class and its attributes and methods clearer when you compare the class to the data frame that yields the same result.

II. Creating a superclass

You can see the scripts here:
https://colab.research.google.com/drive/16xvvegHp5Mbf7B2WXY18f6kM0KmfS7od?usp=sharing

You can learn more from the following posts:

6 Things to Know About Subclassing in Python — Why and How

Classes & Subclasses in Python

About shibatau

I was born and grown up in Kyoto. I studied western philosophy at the University and specialized in analytic philosophy, especially Ludwig Wittgenstein at the postgraduate school. I'm interested in new technology, especially machine learning and have been learning R language for two years and began to learn Python last summer. Listening toParamore, Sia, Amazarashi and MIyuki Nakajima. Favorite movies I've recently seen: "FREEHELD". Favorite actors and actresses: Anthony Hopkins, Denzel Washington, Ellen Page, Meryl Streep, Mia Wasikowska and Robert DeNiro. Favorite books: Fyodor Mikhailovich Dostoyevsky, "The Karamazov Brothers", Shinran, "Lamentations of Divergences". Favorite phrase: Salvation by Faith. Twitter: @shibatau

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.