How to work with DataFrames in Julia?

This recipe helps you to work with DataFrames in Julia.

Recipe Objective: How to work with DataFrames in Julia?

This recipe explains how to work with dataframes in Julia.
For more related projects-
Project 1
Project 2

Learn How to Build a Simple Chatbot from Scratch in Python (using NLTK)

DataFrames in Julia

To use the Data frame in Julia, first, we need to install the Data frame package. We'll install the Data frame package as shown in the given code snippet. We can easily create a data frame using the DataFrame() function. DataFrame() function takes column an there values as argument. We can also fill in the columns separately. To access the first rows of the data frame, use first(DataFrame, rows). To access the last rows of the data frame, use last(DataFrame, rows). Run replace() function to perform replacement operations in a data frame.

using Pkg
Pkg.add("DataFrames")
using DataFrames
data_frame = DataFrame(c1 = ["a", "e", "i", "o", "u"], c2 = ["v", "w", "x", "y", "z"] , c3 = 5:10)
data_frame.c4 = 1:5
data_frame
first(data_frame, 3)
last(data_frame, 3)
replace !(data_frame.c3, 4 => -9)
data_frame
deletecols !(data_frame, 3)

What Users are saying..

profile image

Ed Godalle

Director Data Analytics at EY / EY Tech
linkedin profile url

I am the Director of Data Analytics with over 10+ years of IT experience. I have a background in SQL, Python, and Big Data working with Accenture, IBM, and Infosys. I am looking to enhance my skills... Read More

Relevant Projects

Multi-Class Text Classification with Deep Learning using BERT
In this deep learning project, you will implement one of the most popular state of the art Transformer models, BERT for Multi-Class Text Classification

OpenCV Project to Master Advanced Computer Vision Concepts
In this OpenCV project, you will learn to implement advanced computer vision concepts and algorithms in OpenCV library using Python.

Build a Similar Images Finder with Python, Keras, and Tensorflow
Build your own image similarity application using Python to search and find images of products that are similar to any given product. You will implement the K-Nearest Neighbor algorithm to find products with maximum similarity.

Time Series Forecasting with LSTM Neural Network Python
Deep Learning Project- Learn to apply deep learning paradigm to forecast univariate time series data.

Build a Logistic Regression Model in Python from Scratch
Regression project to implement logistic regression in python from scratch on streaming app data.

Build an End-to-End AWS SageMaker Classification Model
MLOps on AWS SageMaker -Learn to Build an End-to-End Classification Model on SageMaker to predict a patient’s cause of death.

Build a CNN Model with PyTorch for Image Classification
In this deep learning project, you will learn how to build an Image Classification Model using PyTorch CNN

Build Deep Autoencoders Model for Anomaly Detection in Python
In this deep learning project , you will build and deploy a deep autoencoders model using Flask.

Build a Multi ClassText Classification Model using Naive Bayes
Implement the Naive Bayes Algorithm to build a multi class text classification model in Python.

End-to-End ML Model Monitoring using Airflow and Docker
In this MLOps Project, you will learn to build an end to end pipeline to monitor any changes in the predictive power of model or degradation of data.