We will split a Python list into sublists base on the index position. The source code below and it’s quite self explanatory. The output :
Using Python 3 to remove 1st or last line in multi line string
To remove 1st line, change multi line string to list and use list slicing to remove 1st line, see code below: Output before and after
Python text manipulation – Newline every sentences in a paragraph
This post is about text manipulation in a text paragraph. This script will move every new sentence into a newline when it faces a period(.).
Text Analysis using Python
Hi, this post we’ll talk about basic text analysis using Python. This is something that I learned from ‘Applied Text Analysis with Python’ by Benjamin
IoT – Using public dweet.io service, Raspberry Pi and some electronic components, to control Led lighting via mobile phone.
This project uses public dweet.io service to control an IoT device (in this case, the Raspi model 3B) via mobile phone. Basically the user enter
If not date, get row number (using Python Pandas)
This Python script returns the row number if the data in date column is not a date. It changes the data to NaT and using