In one of my earlier posts, I described how to take text and generate Morse code. For details on that, see Text to Morse: codes and sound generation (Python). In this post, I’ll do the reverse. The application will take Morse code symbols and translate into English text. First, let’s start with a fun fact. […]
Tag: python
Combining multiple datasets into a single data file (Excel or CSV)
The Scenario I want to analyze data for New England Patriots over the past 10 seasons. The data files are downloaded as a file by year. So, for 2010 through 2019 NFL season, I have 10 separate data files. I need to combine them all into a single file so I can do an all-up […]
Working with clipboard, dataframe, and data files
In this blog, I’ll share tips on: How to read data into a dataframe, create a subset of dataset in memory Read/write curated subset from/to clipboard as Text/CSV or XLSX Create new data files CSV/Excel The Scenario I have a large dataset. Checking its shape via Python, I see it has 18241 records with 9 […]
Using Python, SQL, and Excel together for data shaping & analysis
There are times when I’d like to take a peek at my data CSV or XLS/X even before firing up Excel. Usually when the dataset is large and I want to quickly inspect it and modify it for my needs before even putting Excel to work. For that purpose, Python is very useful. Add its […]
Text to Morse: codes and sound generation (Python)
In this blog, I’ll discuss how to create a fully functional program that takes user inputs as letters, numbers, and symbols and turns them into International Morse codes, and also play the actual sound of the codes as transmitted at 550Hz (20WMP speed). This program is written in Python and while I’m not a Morse […]
“God” game—revisited (aka Pop game)
What seems like yonks ago, I wrote a fun, DOS based visual game in college that’s a simple simulation of population growth with some user-inputs to the game (i.e. playing “God”, hence the title). You can read about it here. But here, I’m sharing info about that game, revisited, with a different twist. I rewrote […]
A GUI World Weather App (Python)
This is another version (improved with GUI and better error handling) of a weather app in Python that shows weather and related information of any city in the world. This uses tkinter library for GUI and its grid system for precise layout. The Web Service We’ll use openweathermap.org’s web service, which is free. It requires […]
Air-quality GUI Application Using Webservices (Python)
This is a complete GUI application in Python to retrieve air quality information based on a zipcode (within USA). It utilizes the following concepts: Using tkinter library for GUI Calling a webservice Parsing JSON payload Formatting date and UI controls (input box, button, label, will dynamic updates) How to name your application title, attaching your […]
Dynamic Listbox GUI demo using tkinter (Python)
I have been tinkering with the GUI library for Python called tkinter. There are some interesting features in it although I’m not thoroughly impressed by the API designs. It feels to me a little clunky and at times, work-in-progress or subject -to-change type of work. Nevertheless, I’m always curious and I had to explore. Specifically, […]
A complete weather app (Python)
Here, I show step-by-step a complete weather application built using Python. Along with the critical explanations, the full source code is also included. The app makes a RESTful API call to weather service, gets the results back in JSON, then it parses the information and presents it in locale-specific format. The information we will send […]