Sorting excel or csv file in 2022

Sorting excel or csv file in 2022

Allows you to sort your excel column with ease.
Chose algorithm
> heapsort
> mergesort
> quicksort

import pandas as pd 

# read your big file into df
df = pd.read_csv("student.csv");

# sort_values(): sort column 
sort_df = df.sort_values(by="student_name",
                         ascending=False,
                         kind="mergesort");

# save file
sort_df.to_csv("sort.csv", index=False);

Github: https://github.com/eshaikhahmed/pandas_learning

#Python

 

Ejaz Shaikh

I'm passionate about freelancing, technology and healthy lifestyle. I enjoy writing code and writing about code.

Something awesome will come here..