ITB Meteorology Study Program, in collaboration with HMME “Atmosphaira” ITB organized company visits to PT MRT Jakarta, PT Garuda Indonesia, and PT Hidronav Tehnikatama

By : Mely Anggrini
Editor : Muhaji Sahnita Putri
Translator : Aisyah Nurdiva Dewary Priatna

Continue reading “ITB Meteorology Study Program, in collaboration with HMME “Atmosphaira” ITB organized company visits to PT MRT Jakarta, PT Garuda Indonesia, and PT Hidronav Tehnikatama”

Tutorial on reading CSV files in Python using pandas

This tutorial demonstrates how to open meteorological data from a .csv file using the Python pandas module.

Suppose you have a weather station dataset in a .csv file named ‘weather_data.csv’. We can begin by importing the pandas module and opening the file using the pandas.read_csv() function.

import pandas as pd

fpath='weather_data.csv'  #direktori file dibuat di variabel fpath
df=pd.read_csv(fpath)

After the file is imported, you can preview the data using the head() function to view the columns.

df.head()