This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from tabulate import tabulate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install pandas | |
pip install tabulate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Perform Binary search*/ | |
#include<iostream> | |
using namespace std; | |
int search(int arr[],int size,int item); | |
int main() | |
{ | |
int arr[20]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
NewerOlder