Skip to content

Instantly share code, notes, and snippets.

View paritoshk's full-sized avatar
🏠
Working from home

Paritosh Kulkarni paritoshk

🏠
Working from home
View GitHub Profile
@paritoshk
paritoshk / gist:129171eb5fed7a40ddd998a69f87cf74
Created October 14, 2024 08:09
solution_for_nicolas.py
"""
Tech Company Information Extractor
This script extracts information about technology companies from a large text corpus
using the Fireworks AI API. It processes the input in chunks, extracts structured data
based on a predefined schema, and saves the results in multiple formats.
Requirements:
- Python 3.7+
- requests
@paritoshk
paritoshk / barplotfunctions.py
Created February 10, 2022 20:14
Makebarplots_reallyquick
def makelist_ofallstrings(pdrow):
temp_list =[]
for i in range(len(pdrow)):
list_sep = (pdrow[i]).split(sep=',')
for j in list_sep:
temp_list.append(j)
temp_list = [x.strip() for x in temp_list ]
df_temp = pd.Series(temp_list )
df_temp = df_temp.astype(str)
@paritoshk
paritoshk / feature.py
Last active February 3, 2022 19:08
feature_extract_transformtoint
"""
df_order1 = pd.read_excel(r'visit_orders_jan_thru_may2018.xlsx') df_order2 = pd.read_excel(r'visit_orders_JUN_thru_DEC2018.xlsx')
df_order_total = pd.concat([df_order1,df_order2])
df_order_total.info
df_order_total.shape
"""
@paritoshk
paritoshk / none_type_go.py
Created January 28, 2022 17:02
Nonetyperemoval
def nonetype_remove(pdrow):
res = [i for i in pdrow if i]
return res
@paritoshk
paritoshk / basic_clean.py
Created January 28, 2022 16:42
Basic_clean_function_removesallclutter
def basic_clean(text):
""""
A simple function to clean up the data. All the words that
are not designated as a stop word is then lemmatized after
encoding and basic regex parsing are performed.
"""
wnl = nltk.stem.WordNetLemmatizer()
stopwords = nltk.corpus.stopwords.words('english')
text = (unicodedata.normalize('NFKD', text)
.encode('ascii', 'ignore')
@paritoshk
paritoshk / clean_capitalize.py
Last active January 28, 2022 16:43
function_cleanandtidy_words
def basic_cleanandcaptialize(lisofstrings):
return_list = []
for string in (lisofstrings):
string = " ".join(basic_clean(string))
return_list.append((string.title()))
return return_list
@paritoshk
paritoshk / Algo_Tag.py
Last active January 28, 2022 16:18
Algorithm for tag generation
df1['Data_total_grams'] = data
#words_indices_dataframe = pd.DataFrame()
for j in range(len(df1['Data_total_grams'])):
df1['Data_total_grams'][j] = df1['Data_total_grams'][j].split(sep=',')
df1['Data_total_grams'][j] = basic_cleanandcaptialize(df1['Data_total_grams'][j])
for p in range(len(df1['Data_total_grams'][j])):
#print(len(list_of_strings[p].strip()))
q = (df1['Data_total_grams'][j][p].strip()).split()

UX & UI Design Resources on the Web

Index

  1. Online Prototyping
  2. User Testing & Feedback
  3. UI Design Patterns
  4. Colours & Gradients
  5. User & Profile Photos
  6. Stock Photography
  7. Icons