{"id":67,"date":"2026-02-20T15:00:16","date_gmt":"2026-02-20T15:00:16","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/r_najim\/?p=67"},"modified":"2026-02-20T15:00:16","modified_gmt":"2026-02-20T15:00:16","slug":"friday-fed-20-2026","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/r_najim\/2026\/02\/20\/friday-fed-20-2026\/","title":{"rendered":"Friday FED, 20, 2026"},"content":{"rendered":"\n<p>                  Today This Free Friday I am working on a project on YouTube a Personal Finance Tracker.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=Dn1EjhcQk64\">https:\/\/www.youtube.com\/watch?v=Dn1EjhcQk64<\/a><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>import pandas as pd\nimport csv\nfrom datetime import datetime\n\nclass CSV:\n    CSV_FILE = \"finance_data.csv\"\n    COLUMS = &#91;\"date\", \"amount\", \"category\", \"description\"]\n\n    @classmethod\n    def initializes_csv(cls):\n        try:\n            pd.read_csv(cls.CSV_FILE)\n        except FileNotFoundError:\n            df = pd.DataFrame(colums=cls.COLUMS)\n            df.to_csv(cls.CSV_FILE, index=False)\n\n    @classmethod\n    def add_entry(cls, date, amount, category, description):\n        new_entry = {\n            \"date\":date,\n            \"amount\": amount,\n            \"category\":category,\n            \"description\": description,\n        }\n\n        with open(cls.CSV_FILE, \"a\", nweline=\"\") as csvfile:\n            writer = csv.DictWriter(csvfile, fieldnames=cls.COLUMS)\n            writer.writerow(new_entry)\n        print(\"Entry added successfully\")\n\nCSV.initializes_csv()\nCSV.add_entry(\"20-2-2026\", 125.65, \"Income\", \"Salary\")\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This part of the code is for the CSV file in the Personal Finance Tracker.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code> @classmethod\n    def add_entry(cls, date, amount, category, description):\n        new_entry = {\n            \"date\":date,\n            \"amount\": amount,\n            \"category\":category,\n            \"description\": description,\n        }\n\n        with open(cls.CSV_FILE, \"a\", nweline=\"\") as csvfile:\n            writer = csv.DictWriter(csvfile, fieldnames=cls.COLUMS)\n            writer.writerow(new_entry)\n        print(\"Entry added successfully\")\n\nCSV.initializes_csv()\nCSV.add_entry(\"20-2-2026\", 125.65, \"Income\", \"Salary\")\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This part of the code is for the new entry for the CSV file and the Dictionary.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today This Free Friday I am working on a project on YouTube a Personal Finance Tracker.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":68,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/67\/revisions\/68"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}