AWS Tutorials
-
How To Read File Content From S3 Using Boto3? – Definitive Guide
Boto3 is a Python API to interact with AWS services like S3. You can read file content from S3 using Boto3 using the s3.Object(‘bucket_name’, ‘filename.txt’).get()[‘Body’].read().decode(‘utf-8’) statement. This tutorial teaches you … Read more →
-
How To Retrieve Subfolder names in An S3 Bucket In Boto3 Python? – Definitive Guide
AWS S3 is a simple storage service. It provides creating prefixes inside the bucket for better organisation of objects. These prefixes act similar to the subfolders. You can retrieve the … Read more →
-
How to Read JSON file from S3 using Boto3 Python? – Detailed Guide
S3 is a storage service from AWS used to store any files such as JSON files or text files. You can read JSON file from S3 using boto3 by using … Read more →
Pandas Tutorials
-
How To Read a CSV file Into a Record Array in Numpy Python – Definitive Guide
Numpy arrays are used for data manipulation. You can read the csv file into a record array in numpy using the np.genfromtxt() method. This tutorial teaches you how to read … Read more →
-
How To Convert Select Columns in Pandas Dataframe to Numpy Array – Definitive Guide
Pandas dataframe allows you to store data in a 2-dimensional structure. You can convert select columns in Pandas dataframe to NumPy array using arr = df[[“RegNo”, “Country_Code”]].to_numpy() statement. This tutorial … Read more →
-
How To Filter Pandas Dataframe Using In And NOT IN like SQL – Definitive Guide
Pandas dataframe store data in a row and column format. You can filter pandas dataframe using In and Not in like SQL using the df.isin() method. This tutorial teaches you … Read more →
Python Dictionary Tutorials
-
How To Add Multiple Values To the Same Key In Dictionary In Python – With Examples
Python dictionary allows you to store values in key-value pairs. You can add multiple values to the same key in the dictionary in Python using yourdict.setdefault(‘numbers’, [ ]).append(4) statement. The … Read more →
-
How To Find the First Key In The Dictionary In Python – With Examples
The insertion order is maintained in the dictionary since version Python 3.7. You can find the first key in the dictionary in Python using the list(yourdict.keys())[0] method. Output This tutorial … Read more →
-
How To Convert A Dictionary To JSON in Python – With Examples
Dictionary allows you to store value in a key-value format, and JSON is a lightweight data-interchange format. You can convert a dictionary to JSON in python using the json.dumps(yourdict) method. … Read more →
Python File Handling Tutorials
-
How To check if file exists In Python – Definitive Guide?
When working with python, you may need to do specific actions only if a file or a directory exists. You can check if a file exists using the file.exists() method … Read more →
-
How to Read File Line by Line in Python – Definitive Guide
Python provides inbuilt libraries to handle files operation such as create, read, update, delete from the Python application. You can read file line by line in python using the readlines() … Read more →
Python String Tutorials
-
How to Combine Two Columns in Pandas – Definitive Guide
When working with data using Pandas, you may need to combine two columns in Pandas to create another column. You can combine two columns in Pandas using df[“new column name“] … Read more →
-
How To Split the Dataframe String Columns into Multiple Columns – With Examples
Pandas allow you to store values as rows and columns. You can split the dataframe string columns into multiple columns using df[‘Col Name’].str.split(expand=True) statement. Dataframe Will Look Like 0 1 … Read more →
Python List Tutorials
Machine Learning
-
How To Plot Confusion Matrix in Python and Why You Need To?
Visualizations play an essential role in the exploratory data analysis activity of machine learning. You can plot confusion matrix using the confusion_matrix() method from sklearn.metrics package. Why Confusion Matrix? After … Read more →
-
How to Convert Sklearn Dataset to Pandas Dataframe in Python
Sklearn datasets become handy for learning machine learning concepts. When using the sklearn datasets, you may need to convert them to pandas dataframe for manipulating and cleaning the data. You … Read more →
-
How To Do Train Test Split Using Sklearn in Python – Definitive Guide
In machine learning, Train Test split activity is done to measure the performance of the machine learning algorithm when they are used to predict the new data which is not … Read more →
SKLearn
-
How to Convert Sklearn Dataset to Pandas Dataframe in Python
Sklearn datasets become handy for learning machine learning concepts. When using the sklearn datasets, you may need to convert them to pandas dataframe for manipulating and cleaning the data. You … Read more →
Statistics
-
How to Normalize a Numpy Array to A Unit Vector in Python?
Numpy arrays are a grid of values of the same type. You can use these arrays to store a list of values that needs to be used for data analysis … Read more →
-
How to Normalize Data Between 0 and 1
Normalization of data is transforming the data to appear on the same scale across all the records. You can normalize data between 0 and 1 range by using the formula … Read more →