This file contains 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 | |
import numpy as np | |
tsv_file_name='name.tsv' | |
csv_table=pd.read_table(tsv_file_name,sep='\t') | |
csv_table.to_csv('new_name.csv',index=False) |
This file contains 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
SET GLOBAL general_log = 'ON'; |
This file contains 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 sys | |
from operator import mul | |
from fractions import Fraction | |
def mf(n,k): | |
return int( reduce(mul, (Fraction(n-i, i+1) for i in range(k)), 1) ) | |
lines = sys.stdin.readlines() | |
for i in range(len(lines)): | |
lines[i] = lines[i].replace('\n','') | |
if i > 0: |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
usage: | |
cat about.txt | python soinput.py | |
''' | |
import sys |
This file contains 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 sys | |
################################################ | |
# This fuction searches the words in dictionary# | |
# Input Parameters : Jumbled Word # | |
# Return type : A list containing valid words # | |
################################################ | |
def wordsearch(jumbledWord): | |
matchList = [] # Creating an empty list |