HOME Python Python JavaScript Python Syntax Regular Expression Lunar to Solar Conversion Tutorial try requests Python Library Python Exceptional Handling Python Data Type Error Handling Python Data Type Error Python Applications Pandas lunardate catch Guido van Rossum exclude_javascript Exceptional Handling Excel Download WebPage Data Type Error Data Science Data Processing Data Manipulation Data Analytics Data Analysis

PYTHON ( 1 / 1 )

Mastering Excel Data Manipulation with Python   (updated at Apr 26, 2024)   37  

Python provides an awesme feature can access Excel spreadsheet file that based on pandas.You can use the pandas library in Python to read an Excel file and store its data into a Python array. Here's a basic example:Replace 'your_excel_file.xlsx' with the p...

Try...Catch Helps Ignoring Data Type Miss-Match Error in Python   (created at Mar 26, 2024)   164  

In Python, Data Type error is very strong and sensitive, so the application goes down so easily when the type is miss-mathced during the operation. If the data type is a kind of inherited object from a database table, sometimes some of the field could be i...

RegExp example in Python to exclude javascript from HTML code   (created at Mar 22, 2024)   52  

To exclude JavaScript from HTML code using Python, you can use regular expressions (re module) to remove all tags and their contents. Here's a simple Python function to achieve this:This function exclude_javascript() takes an HTML code string as input and ...

Python code to convert from Lunar to Solar   (created at Mar 22, 2024)   83  

Converting from the lunar calendar to the solar calendar can be a bit complex due to the differences in the lengths of months and years between the two calendars. Here's a simple Python code using the lunardate library to convert a lunar date to a solar da...

Python example to download webpage   (created at Feb 26, 2024)   125  

You can download a webpage in Python using the requests library. Here's a simple example:Make sure to install the requests library if you haven't already:This script defines a function download_webpage that takes a URL as input and returns the webpage cont...

Python Introduction   (created at Jun 12, 2023)   430  

Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.It is used for:web development (server-side), software development, mathematics, system scripting. What can Python do?Python can be used on a server to creat...

What is Python?   (created at Jun 12, 2023)   190  

Python is a genus of constricting snakes in the Pythonidae family native to the tropics and subtropics of the Eastern Hemisphere.In terms of programming language, Python was created by Guido van Rossum, and first released on February 20, 1991. While you ma...
What is Python?