Fariba Laiq
About Fariba Laiq
I am Fariba Laiq from Pakistan. An android app developer, technical content writer, and coding instructor. Writing has always been one of my passions. I love to learn, implement and convey my knowledge to others.
howto · 2025-03-14
How to Fix TabError in Python
This tutorial demonstrates the causes and solutions to fix TabError in Python. Learn how to maintain consistent indentation, configure your text editor, and use a linter to avoid these errors. Enhance your coding skills and improve your Python projects with effective strategies to resolve TabErrors.
howto · 2025-03-13
AES Encryption in Python
This tutorial demonstrates how to encrypt and decrypt a message using AES 256 encryption in Python with the PyCrypto library. Learn step-by-step how to implement AES encryption in your applications, enhance data security, and protect sensitive information effectively.
howto · 2025-03-13
How to Calculate Percentage Change in Pandas
This tutorial demonstrates how to calculate percentage change in a Pandas DataFrame. Learn to use the pct_change() function, manual calculations, and groupby techniques to analyze trends in your data effectively. Gain valuable insights into your datasets with these essential methods.
howto · 2025-03-13
How to Apply Transform With Groupby in Pandas
This tutorial demonstrates the difference between the apply and transform methods used with the groupby function in Pandas Python. Learn how to effectively utilize these methods to manipulate and analyze your data, enhancing your data analysis skills. Discover practical examples and key differences to improve your understanding of these powerful tools.
howto · 2025-03-13
How to Filter Data in a Pandas DataFrame
This tutorial demonstrates filtering data in a Pandas DataFrame based on single or multiple conditions. Learn how to use boolean indexing, the query method, and the isin function to extract meaningful insights from your datasets efficiently. Master these techniques to enhance your data analysis skills with Pandas.
howto · 2025-03-13
How to GroupBy and Aggregate Multiple Columns in Pandas
This tutorial demonstrates how to group data based on multiple columns and apply aggregate methods to grouped data in a Pandas DataFrame using Python. Learn effective techniques for summarizing and analyzing datasets to uncover valuable insights.
howto · 2025-03-13
How to Append List to DataFrame Pandas
This tutorial demonstrates how to append a list as a row to a Pandas DataFrame. Learn various methods including using loc, append, and concat to enhance your data manipulation skills in Python. Perfect for beginners and experienced data analysts alike.
howto · 2025-03-13
How to Remove HTML Tags From a String in Python
This tutorial demonstrates how to remove HTML tags from a string in Python. Learn effective methods using regular expressions, BeautifulSoup, and HTMLParser. Clean your data effortlessly with clear code examples and detailed explanations. Perfect for web developers and data analysts looking to streamline their HTML handling skills.
howto · 2025-03-13
How to Fix Python NameError: Name Execfile Is Not Defined
This tutorial demonstrates the NameError: name execfile is not defined, its cause, and effective solutions to resolve this error in Python 3. Learn how to use exec() and importlib to execute scripts correctly in Python 3, ensuring your code runs smoothly and efficiently.
howto · 2025-03-13
How to Reduce Fractions in Python
Learn how to reduce fractions in Python with ease using the built-in fractions module. This guide covers creating fractions from various data types, reducing them automatically, and using the reduce() function for collective simplification. Perfect for beginners and experienced programmers alike, this article provides clear examples and detailed explanations to enhance your Python skills.
howto · 2025-03-11
How to Have Beep Sound in Python
This tutorial demonstrates how to create a beep sound in Python using various methods, including the winsound library, os system commands, and the playsound library. Learn to enhance your Python applications with auditory feedback and improve user experience. Dive into this comprehensive guide for step-by-step instructions and code examples.
howto · 2025-03-11
How to Convert Sentence to Title Case in Python
This tutorial demonstrates how to convert any sentence to title case using Python. Learn various methods, including str.title(), str.capitalize(), and regular expressions, to effectively format your text. Enhance your programming skills and improve text readability with these easy-to-follow techniques.
howto · 2025-03-11
Memory Profiler in Python
This tutorial demonstrates the use of memory profilers to monitor memory consumption of code blocks in Python. Learn how to use the memory_profiler library effectively, visualize memory usage, and optimize your Python applications for better performance.
howto · 2025-03-11
Coverage in Python
This tutorial demonstrates the use of the coverage module for testing Python program execution. Learn how to install, use, and interpret coverage reports to improve your code quality. Discover advanced features like excluding lines and combining coverage data for comprehensive insights. Enhance your testing strategies today!
howto · 2025-03-11
First Class Functions in Python
This tutorial explores first-class functions in Python, demonstrating how they are treated as objects. Learn how to pass functions as arguments, return them from other functions, and store them in data structures. Discover practical applications and enhance your programming skills with this comprehensive guide.
howto · 2025-03-11
How to Plot Grouped Data in Pandas
This tutorial demonstrates how to plot grouped data in Pandas using various visualization methods. Learn to create bar charts, line plots, and box plots to effectively analyze and present your data. Discover how to group data using the groupby function and visualize it to gain valuable insights. Perfect for data analysts and enthusiasts looking to enhance their skills in data visualization with Python.
howto · 2025-03-11
How to Add Image to Pandas Dataframe
This tutorial demonstrates how to add images to a Pandas DataFrame in Python. Learn various methods, including using file paths, embedding images directly, and linking to online images. Enhance your data analysis and visualization skills with practical examples and clear explanations. Perfect for data analysts and Python enthusiasts looking to improve their projects with visual elements.
howto · 2025-03-11
How to Install Pygame for Python 3.5/3.11
Learn how to install Pygame for Python 3.5 and 3.11 in this comprehensive tutorial. Discover easy methods using pip and source installation, along with troubleshooting tips. Start your game development journey with Pygame today!
howto · 2025-03-11
How to Resolve OSError: [Errno 2] No Such File or Directory in Python
This tutorial demonstrates the causes of OSError: Errno 2 No Such File or Directory in Python and the ways to resolve it. Learn effective methods to troubleshoot and fix this common error, ensuring your Python scripts run smoothly. Discover tips on checking file paths, verifying working directories, using absolute paths, and managing file permissions.
howto · 2025-03-11
How to Fix TypeError: Non-Empty Format String Passed to Object.__format__ in Python
This tutorial demonstrates the causes of TypeError: non-empty format string passed to object.__format__ and how to resolve this error in Python. Learn effective strategies to implement the __format__ method and handle string formatting in your custom classes. Avoid common pitfalls and enhance your Python programming skills today.
howto · 2025-03-11
How to Fix TypeError: 'map' Object Is Not Subscriptable in Python
This tutorial demonstrates the cause of TypeError: 'map' object is not subscriptable and provides effective solutions to resolve this error in Python. Learn how to convert map objects to lists, iterate over them, and utilize list comprehensions for better coding practices. Enhance your Python skills and eliminate this common error with our easy-to-follow guide.
howto · 2025-03-11
How to Fix ModuleNotFoundError: No Module Named mpl_toolkits.basemap in Python
This tutorial demonstrates the causes of ModuleNotFoundError: No module named mpl_toolkits.basemap and the solutions to fix this error in Python. Learn how to install the Basemap toolkit using pip or Anaconda, verify your Python environment, and ensure your projects run smoothly. Discover effective methods to overcome this common issue and enhance your Python coding experience.
howto · 2025-03-11
How to Fix ModuleNotFoundError: No Module Named Openpyxl in Python
This tutorial demonstrates the No module named openpyxl error in Python, its causes, and effective solutions. Learn how to install Openpyxl, use virtual environments, and verify your Python setup to resolve this common issue. Get back to your Python projects seamlessly with our step-by-step guide.
howto · 2025-03-11
How to Extend a Class Having Multiple Constructors in Kotlin
This tutorial demonstrates how to extend a class with multiple constructors in Kotlin using secondary constructors. Learn to create robust class hierarchies and improve your Kotlin skills with practical examples and best practices. Discover how to leverage primary and secondary constructors effectively for cleaner code.
howto · 2025-03-11
Python Bitwise NOT
Explore the Python Bitwise NOT operation in this comprehensive guide. Learn how this unary operation flips bits, its syntax, practical applications, and clear examples to enhance your programming skills. Understand how to manipulate binary data effectively with Bitwise NOT in Python.
howto · 2025-03-11
How to Pivot a DataFrame in Pandas
Learn how to pivot a DataFrame in Pandas using the pivot() method. This comprehensive guide covers the basics of reshaping data, handling MultiIndex situations, and provides clear examples to enhance your data analysis skills. Discover how to effectively organize your data for better insights and visualization.
howto · 2025-03-11
How to Install Pandas in PyCharm
Learn how to install Pandas in PyCharm effortlessly, whether using the command line or the built-in package manager. This guide provides step-by-step instructions for both methods, ensuring you can quickly start your data analysis journey in Python. Follow along to harness the power of Pandas in your projects.
howto · 2025-03-11
Pandas tz_localize
This article explores the Pandas tz_localize() method, a powerful tool for localizing timezones in datetime objects. Learn how to effectively use tz_localize() with practical examples and detailed explanations. Discover how to handle errors, convert timezones, and ensure accurate data analysis. Whether you're a data analyst or scientist, mastering this method will enhance your data manipulation skills.
howto · 2025-03-11
Pandas groupby() and diff()
Explore the powerful capabilities of Pandas groupby() and diff() functions in this comprehensive guide. Learn how to group data into categories and calculate differences between values effectively. Discover practical examples and insights to enhance your data analysis skills in Python. Whether you are a beginner or an experienced analyst, this article will equip you with the knowledge to leverage these essential tools for your data projects.
howto · 2025-03-04
How to Normalize a List of Numbers in Python
This tutorial demonstrates how to normalize a list of numbers in Python.
howto · 2025-03-04
Python Annotation ->
This tutorial explores Python return value annotations using the -> operator, enhancing code readability and maintainability. Learn how to specify expected return types, improve team collaboration, and reduce errors in your Python code. Discover practical examples and benefits of using annotations in your programming journey.
howto · 2025-03-04
Folium Package in Python
This tutorial demonstrates the use of Python Folium library to visualize data in an interactive leaflet map.
howto · 2025-03-04
How to Make a Grade Converter in Python
This tutorial demonstrates how to make a grade calculator in Python that assigns a grade against each range of marks obtained by the student.
howto · 2025-03-04
Vim Autocomplete for Python
This tutorial discusses Vim autocomplete with Python.
howto · 2025-03-04
How to Update Pandas in Anaconda
This tutorial demonstrates different ways to update Pandas in Python using Anaconda. Learn how to use Anaconda Navigator, the command line, and manage environments effectively to ensure your Pandas library is current. Keep your data analysis tasks running smoothly with the latest features and improvements.
howto · 2025-02-26
Paramiko Python
This tutorial provides a comprehensive guide to Paramiko in Python, covering its installation, usage, and features. Learn how to connect to remote servers, execute commands, and transfer files securely using this powerful library. Perfect for developers and system administrators looking to streamline their workflow with Python.
howto · 2025-02-26
How to Encode UTF8 in Python
This tutorial demonstrates how to encode a string in UTF-8 using the encode() method in Python. Learn about encoding, error handling, and decoding back to string, ensuring your applications can handle diverse characters effectively. Enhance your text data management skills with practical examples and clear explanations.
howto · 2025-02-26
How to Install Pygame in Conda
This tutorial provides a comprehensive guide on how to install Pygame in Conda for Python 2.7. Follow step-by-step instructions to create a dedicated environment, install Pygame, and verify your installation. Perfect for beginners and experienced developers alike, this guide ensures you have everything you need to start your game development journey with Pygame.
howto · 2025-02-25
How to Get Year From a Datetime Object in Python
This tutorial demonstrates to get the year from a datetime object.
howto · 2025-02-20
How to Open File Exception Handling in Python
In Python, when the file we want to access does not exist, an exception known as `FileNotFoundError` is raised. This article will guide you to catch the exception and execute the rest of the code.
howto · 2024-02-15
How to Use Urlencode in Python
This tutorial demonstrates to URL encode any query string in Python.
howto · 2024-02-15
How to Fix Valueerror: Expected 2d Array, Got 1d Array Instead
In Python, the Expected 2D array got a 1D array instead error occurs when we are passing a 1-dimensional array in a function but the function requires 2-dimensional array, so instead of passing a 2D array, we are passing Array with Single Dimension.
howto · 2024-02-15
How to Filter Rows That Contain a Specific String in Pandas
This tutorial demonstrates how to filter a Pandas dataframe by substring criteria in Python. Rows that include a specific string in a list may be filtered using the str() method. There are other approaches as well.
howto · 2024-02-15
How to Concatenate Two DataFrames in Pandas Python
With the help of Pandas, it is possible to quickly combine series or dataframe with different types of set logic for the indexes and relational algebra capabilities for join and merge-type operations.
howto · 2024-02-15
Pandas SQLAlchemy
This article demonstrates to convert a SQL Alchemy ORM table to Pandas Dataframe in Python.
howto · 2024-02-14
How to Resize Image in Python
This tutorial shows how to resize an image using an alternative method of the deprecated imresize() method of the SciPy module in Python.
howto · 2024-02-02
How to Print Contents of PYTHONPATH in Python
This tutorial demonstrates how to print the contents of PYTHONPATH environment variable in Python.
howto · 2024-02-02
How to Create a List of Range of Dates in Python
This tutorial demonstrates to create and output a list of a range of dates in python given the start date and K days after the given date or given the start date and end date.
howto · 2024-02-02
How to Remove List From List in Python
This tutorial demonstrates to remove items from list A that are also present in list B.
howto · 2024-02-02
How to Use RMSE in Python
This tutorial demonstrates to find the root mean square error in Python
howto · 2024-02-02
How to Use getitem in Python
This tutorial demonstrates the use of the getitem method with a class in Python
howto · 2024-02-02
How to Implement Depth-First Search in Python
This tutorial demonstrates depth first search with its code using both recursive and iterative approach in Python.
howto · 2024-02-02
How to Install Python on Linux
This tutorial demonstrates how to install Python on Linux.
howto · 2024-02-02
The NetworkX Package in Python
This tutorial demonstrates the use of Python NetworkX package to study complex networks.
howto · 2024-02-02
How to Read Excel Multiple Sheets in Pandas
This tutorial demonstrates to read multiple Excel sheets from an Excel workbook in Pandas Python.
howto · 2024-02-02
How to Execute SQL Query in Pandas
This tutorial demonstrates executing an SQL query over a Pandas data frame in Python.
howto · 2024-02-02
How to Save Pandas DataFrame as HTML Using Python
This tutorial demonstrates to convert a Pandas DataFrame to an HTML table in Python.
howto · 2024-02-02
How to Fill Missing Values in Pandas DataFrame
This tutorial demonstrates to fill missing values in Pandas dataframe using the ffill() method.
howto · 2024-02-02
How to Coalesce Values From Multiple Columns Into a Single Column in Pandas DataFrame
This tutorial demonstrates returning the first non-null value from multiple columns into another column in Python Pandas dataframe.
howto · 2024-02-02
How to Calculate the Variance in a Pandas DataFrame
This tutorial demonstrates how to calculate the variance in a Python Pandas dataframe.
howto · 2024-02-02
The Schedule Package in Python
This tutorial demonstrates the use of the schedule package in Python to schedule jobs periodically after a certain interval of time.
howto · 2024-02-02
How to Use Factory Pattern in Python
This tutorial demonstrates the use of `factory design pattern` in Python.
howto · 2024-02-02
How to Swap Elements of a List in Python
This tutorial demonstrates to swap the elements of a list in Python.
howto · 2024-02-02
How to Overload Operator in Python
This tutorial demonstrates the concept of operator overloading, its types, and code implementation in Python.
howto · 2024-02-02
How to Check if a Word Exists in a String in Python
This tutorial demonstrates to check if a string contains a specific word using different techniques in Python.
howto · 2024-02-02
How to Validate IP Address in Python
This tutorial demonstrates checking if an IP address is valid or not in Python.
howto · 2024-02-02
How to Plot CSV in Python
This tutorial demonstrates to visualize the data in CSV file using different plots in Python.
howto · 2024-02-02
How to Read HTML Table in a Pandas DataFrame
This tutorial demonstrates how to read HTML tables from a URL, string, or file and convert them into a Pandas dataframe in Python.
howto · 2024-02-02
How to Get Substring in Pandas
This tutorial demonstrates to get a substring from a Pandas DataFrame column values.
howto · 2024-02-02
How to Calculate the Mean of a Grouped Data in Pandas
This tutorial demonstrates how to calculate the mean of a grouped data using the groupby.mean() method in Pandas.
howto · 2024-02-02
How to Apply the If-Else Condition in a Pandas DataFrame
This tutorial demonstrates multiple ways to apply the if-else condition in a Pandas dataframe in Python.
howto · 2024-02-02
How to Scroll Down a Website Using Python Selenium
This tutorial demonstrates how to automate the task of scrolling down a website using Selenium in Python.
howto · 2024-02-02
How to Plot a Line Graph With Data Points in Pandas
This tutorial demonstrates creating a line plot with some data points in Pandas.
howto · 2024-02-02
How to Open and Close Tabs in a Browser Using Selenium Python
This tutorial demonstrates how to automatically open a new tab in a browser using Selenium in Python.
howto · 2024-02-02
How to Login to a Website Using Selenium Python
This tutorial demonstrates automating a website's login using an automation tool known as Selenium in Python.
howto · 2024-02-02
How to Move Column to Front in Pandas DataFrame
This tutorial demonstrates to move a column to the front in Pandas DataFrame.
howto · 2024-02-02
How to Profile a Python Code
This tutorial demonstrates how to profile code to check its execution time in Python.
howto · 2024-02-02
How to List All Files in Directory and Subdirectories in Python
This tutorial demonstrates how to list all files in a directory and subdirectories in Python.
howto · 2024-02-02
How to Resolve KeyError 0 in Python
This tutorial demonstrates what KeyError 0 is, its cause, and a few ways to resolve this error in Python.
howto · 2024-02-02
How to Fix Resolve TypeError: Module Object Is Not Callable in Python
This tutorial demonstrates what Python TypeError: module object is not callable means, its cause, and the ways to resolve this error.
howto · 2024-02-02
How to Fix ValueError: Unsupported Pickle Protocol: 3 in Python
This tutorial demonstrates ValueError: unsupported pickle protocol: 3, its cause, and the way to resolve this error in Python.
howto · 2024-02-02
How to Fix Python File Not Found Error
This tutorial demonstrates file not found error, its causes and ways to resolve this error in Python.
howto · 2024-02-02
How to Fix Error: Bash: Syntax Error Near Unexpected Token '(' in Python
This tutorial demonstrates the syntax error near unexpected token, its cause, and how to resolve this error in Python.
howto · 2024-02-02
How to Solve AttributeError: 'Nonetype' Object Has No Attribute 'Group' in Python
This tutorial demonstrates attributeerror: nonetype object has no attribute group, its cause, and the way to resolve this error in Python.
howto · 2024-02-02
How to Escape Curly Braces Using format() in Python
This tutorial demonstrates to escape curly brackets in Python using the format() method.
howto · 2024-02-02
How to Escape Curly Braces in F-String in Python
This tutorial demonstrates how to print curly brackets in output in Python.
howto · 2024-02-02
How to Execute Python Script via Crontab
This tutorial demonstrates to execute a Python script via Crontab.
howto · 2024-02-02
How to Read Parquet File Into Pandas DataFrame
This tutorial demonstrates to read parquet files into a pandas dataframe in Python.
howto · 2024-02-02
How to Implement OLS Regression in Pandas
This tutorial demonstrates to run OLS regression on a Pandas dataframe in Python.
howto · 2024-02-02
How to Filter Rows After groupby() in Pandas Python
This tutorial demonstrates the groupby() method that filters and sorts the data from the Pandas dataframe in Python.
howto · 2024-02-02
How to Rename Specific DataFrame Columns in Pandas
Columns and indexes of a Pandas dataframe object can occasionally be changed. We can use the Pandas dataframe rename() method to rename columns and indexes. Additionally, we can rename both single and many columns.
howto · 2024-02-02
How to Fit a Step Function in Python
Step functions are methods with graphs that look like a series of steps. They consist of a series of horizontal line segments with intervals in between and can also be referred to as staircase functions. This article demonstrates using the step function in Python and plotting the graph.
howto · 2024-02-02
How to Plot Decision Boundary Python
This article demonstrates to plot a decision boundary separating two classes in Python using the matplotlib library.
howto · 2024-02-02
How to Get Cookie Using Python Selenium
This article demonstrates getting cookies from a website using the powerful web automation tool known as Selenium.
howto · 2023-12-10
Python Multiple if Statements on One Line
This tutorial demonstrates to write an if-elif-else statement on one line in Python.
howto · 2023-10-10
Named Tuple in Python
This tutorial explains a named tuple, when and how to use it, and the difference between normal and named tuples in Python.
howto · 2023-10-10
Python Iterable
This tutorial demonstrates the meaning and difference between iterator, iterable and iteration in Python.
howto · 2023-10-10
Python Determinant
This tutorial demonstrates finding the determinant of a square matrix in Python.
howto · 2023-10-10
Web Element Methods in Selenium Python
This tutorial demonstrates the methods we can apply to a web element using Selenium in Python.
howto · 2023-10-10
Inorder Traversal of a Tree in Python
This tutorial demonstrates implementing the inorder traversal for a binary tree in Python.
howto · 2023-01-30
Mousebuttondown Event in PyGame
This tutorial demonstrates to detect the `MOUSEBUTTONDOWN` event using Pygame and trigger an action in response.
howto · 2023-01-08
Python Contextlib
This tutorial demonstrates the use of context managers in Python for automatic resource management.
howto · 2022-03-16
Pandas Vlookup
This tutorial demonstrates to merge two different tables through different techniques using Pandas in Python.