Skip to content

Instantly share code, notes, and snippets.

View GurjotSinghMahi's full-sized avatar
🏢
Working from Office

Gurjot Singh Mahi GurjotSinghMahi

🏢
Working from Office
  • Punjabi University, Patiala, Punjab, India
  • Chandigarh
View GitHub Profile
import pandas as pd
from tabulate import tabulate
# read the csv file
df = pd.read_csv("raw_data.csv")
# displaying the DataFrame
print(tabulate(df, headers = 'keys', tablefmt = 'psql'))
import pandas as pd
from tabulate import tabulate
pip install pandas
pip install tabulate
@GurjotSinghMahi
GurjotSinghMahi / Binary search
Created January 24, 2015 06:44
C++ Performing Binary search
@GurjotSinghMahi
GurjotSinghMahi / Array Traversing
Created January 24, 2015 06:41
C++ demonstration of Array Traversing Algorithm
#include<iostream>
using namespace std;
int main()
{
int arr[20],range,n;
cout<<"enter the range of elements"<<endl;
cin>>range; //input the range of items to be inserted
cout<<"enter the array"<<endl;
for(n=0;n<range;n++)
cin>>arr[n]; //input the item in array