T1-1 | call ‘pick \(\_\) with \(\_\) replacement‘ | how to generate random letter |
| create a dictionary with keys ‘random \(\_\) letters‘ and values ‘random \(\_\) numbers‘ | import library random |
| create dictionary | list to dict |
| create empty dictionary | loop on numbers from 0 to 100 |
| create list ”a \(\_\) list” | loop over a range of ‘count‘ |
| defaultdict | merge 2 dictionaries |
| dictionary of characters and int | pair characters in ‘characters’and numbers in ‘numbers‘ |
| for loop on range 100 | print ‘dic’keys on each line |
| generat integers 1–20 | print ‘dic’keys sorted |
| generate 100 integers (1–20 inclusive). | print ‘dic’sorted by keys |
| generate 100 random lower-cased leters | print a to z |
| generate 100 random lowercase letters | print list |
| generate 100 random numbers | print list as string |
| generate 100 random numbers from 1 to 20 | print list elements |
| generate a rondom lower case character | print without newline |
| generate char lower case | random |
| generate dict | random character between a and z |
| generate list of random charachters | random characters |
| generate lowercase char | random integer between 1 and 20 |
| generate random | random number |
| generate random between 0 and 20 | random sample with replacement |
| generate random charachter | randomly generate 100 letters |
| generate random int | randomly pick an item from ‘seq‘ |
| generate random letters | rearrange dictionary keys into alphabetic order |
| generate random lower case letters | sort a list |
| generate random nu,ber | sort a list into ascending order |
| generate random number | sort a list x into ascending order |
| generate random numbers | sort dict by key |
| generate random numbers between 1-20 inclusive | sort key of dict |
| get a random letter | sort list |
| given list ‘letters’and ‘integers‘, create a dicitonary such that the values in ‘letters’are keys and values in ‘integers’are values | sort list ’values’ into ascending order |
| how to append value in dict | squence of integers from 1 to 20 inclusive |
| how to check if a key is in a dictionay | zip 2 lists |
| how to generate random int in range between 1 and 20 | zip ‘hundred \(\_\) characters’with ‘hundred \(\_\) numbers‘ |
T1-2 | add a week to a datetime | get gmt timezone |
| add days to time | get now one week from now |
| assign current date and time to ‘now‘ | get the current date in utc |
| change date format | get the current time in utc |
| change datetime format of ‘week \(\_\) date’to mm-dd-yyyy hh:mm | get the date and time a week from now in gmt |
| convert ‘week \(\_\) date’to GMT timezone and assign to ‘GMT \(\_\) week \(\_\) date‘ | get time and date |
| convert date timezone | get time and date in gmt in ‘date‘ |
| date from 7 days | get time and date one week from now |
| date gmt | get time now |
| date now | gmt |
| datetime | gmt time 24 |
| display ‘week \(\_\) date’in format mm-dd-yyyy hh:mm | import datetime |
| format datetime | import time |
| format datetime 24 hour | mm-dd-yyyy |
| format time | print current date time |
| get current datetime | print date and time in GMT in 24hr format |
| get date 7 days from today | print datetime in mm-dd-yyyy hh:mm format |
| get date and time in gmt | time add |
| get date and time one week from now | time and date |
| get date time one week from now | time and date in certain |
| get datetime | timedelta |
T2-1 | copy column from ”data.csv” file to another ”output.csv” | new line |
| copy column from ”data.csv” to ”output.csv” | number of columns of csv |
| create ’output.csv’ csv file | open ”data.csv” file |
| csv write | open a csv file ‘data.csv’and read the data |
| csv writer | open csv |
| cvs | open csv file ‘data.csv‘ |
| cvs files | open csv file with read and write |
| delete a column in csv | open file |
| delete column from csv | pandas read csv |
| delete column from csv file | pandas read csv named ”data.csv” |
| delete first and last column in csv file | print csv without row numbers |
| delete first and last column of ‘df’ | python make dir |
| delete first and last row from the dataframe ‘df‘ | read ”data.csv” file |
| delete first row from dataframe ‘df‘ | read csv file ”data.csv” |
| delete row in csv | read csv file using pandas |
| delete the first column in csv file ‘df’ | read csv pure python |
| file to csv | read cvs |
| get current path | remove columns from csv file and save it to another csv file |
| get specific columns by index in pandas data frame | remove first column from csv file |
| headers in a dataframe | save ‘df’ to a file ‘output.csv’ in a new directory ‘example \(\_\) output’ |
| how to delete a column in a dataframe python | save dataframe to csv |
| how to delete columns in dataframe | save pandas dataframe to a file |
| how to save a dataframe in csv file | save this dataframe to a csv |
| if dir exist | write ‘output’to csv file |
| if directory ”output” exists | write csv ‘output \(\_\) f’to file ”output/output.csv” |
| make directory | write output to csv file ”output.csv” |
| make directory ”output” if it doesn’t exist | write to csv file |
T2-2 | change directory | list files in folder |
| change directory to ”data” | list of filenames from a folder |
| check file encoding | move file to other directory |
| check if directory exists | normalize newlines to \(\textbackslash\) n |
| convert binary decoded string to ascii | open file |
| convert file encoding | open text file |
| convert file to utf | read a file and iterate over its contents |
| convert latin-1 to utf-8 | read all files under a folder |
| convert str to utf-8 | read file |
| convert text file encoding | read ISO-8859-15 |
| convert text files from encoding ISO-8859-15 to encoding UTF-8. | readline encoding |
| copy a file | redirect |
| copy file | remove header |
| copy file ‘ddd.png‘ | remove heading white space |
| copy file to other folder | text normalize newlines to \(\textbackslash\) n |
| covert file to utf | traverse a directory |
| find character | travverse list of files |
| get all files in directory | trim heading whitespace |
| get the file extension | trim the heading and trailing whitespaces and blank lines for all text files |
| iterating files in a folder | unkown encoding |
| list all text files in the data directory | write to file |
| list files in directory | |
T3-1 | check if ‘file’is a directory | match regex year month day |
| check if string has specific pattern | move file |
| copy a file to dist | move files from directory to directory |
| copy all files and directories from one folder to another | recursive copy files and folders |
| copy directory to another directory | recursively iterate over all files in a directory |
| copy directory to directory | regex dd-mm-yy |
| copy directory tree from source to destination | regex digit python |
| copy file from ‘src \(\_\) path’to ‘dest \(\_\) path‘ | regex for date |
| copy files | regex replace capture group |
| copy files and directories under ‘data’ directory | regexp date |
| copy files creating directory | rename file |
| copy files from folder | rename file with regex |
| create file | rename files |
| create folder | replace pattern in string |
| datetime to string | search all matches in a string |
| extract year month day from string regex | search for pattern ”%d%d-%d%d” in ‘file‘ |
| get all files and folders | walk all files in a directory |
| get the files that inside the folders | walk all nested files in the directory ”data” |
| list all filepaths in a directory | walke all files in a directory |
| make a folder recersively | write to file |
T3-2 | add entry to json file | load json file |
| check if file ‘output \(\_\) file’exists | load json from a file |
| check if file ends with .json | read a json file named ‘f‘ |
| convert dict to string | sorting a dictionary by key |
| convert list to dictionary | write into txt file |
| import json parsing library | write json in ‘ret’ to file ‘outfile’ |
T4-1 | find all bold text from html ‘soup’ | parse all hyperlinks from ‘r’ using bs4 |
| find all hrefs from ‘soup’ | visit ‘url’ and extract hrefs using bs4 |
| find all red colored text from html ‘soup’ | visit the given url ‘url’ and extract all hrefs from there |
| go to a url | visit the url ‘url‘ |
| how to get page urls beautifulsoup | |
T4-2 | create directory | regex [] |
| download an image request | save dict to csv |
| extract imafe from html | save table beautifulsoup |
| http reques get html | |
T5-1 | add json file to a list | check email correctness |
T5-2 | argparse subprogram | print format |
| exit program | request with params |
| gET request to ”https://jsonplaceholder.typicode.com/posts” with argument userId | |
T6-1 | a list of dictionary to pandas dataframe | pandas change dataframe column name |
| add a new column to a dataframe row | pandas create buckets by column value |
| average by group pandas | pandas dropnan |
| cast a float to two decimals | pandas get average of column |
| cast a list to a dataframe | pandas group by |
| column to integer pandas | pandas join dataframes |
| create a dataframe from a list | pandas join series into dataframes |
| csv | pandas output csv |
| csv write | pandas print with two decimals |
| delete coloumn pd | pandas read from csv |
| df set column to 7 decimals | pandas round value |
| filter df with two conditions | pandas save csv two decimal |
| filter values in pandas df | pandas to csv |
| find unique data from csv | pandas to csv decimal |
| findall | pandas write df to csv |
| floating data in csv group in digit | pandas write to csv file |
| format output to 2 decimal | pandas write to file decimal |
| get average of row values in pandas dataframe | read csv |
| get average value from group of data in csv | read csv file |
| get the head of dataframe ‘df’ | remove repeated column in csv file |
| group by range pandas | rename column pandas |
| group of data from csv | rename pandas df columns |
| how to combine 2 lists into a dictionary | round a variable to 2dp |
| how to remove an item from a list using the index | save ‘compan \(\_\) df’ dataframe to a file |
| import pandas | save ‘compand \(\_\) df’ dataframe to a file |
| list to an entry in pandas dataframe | sort dataframe ‘jdf’by ‘scores‘ |
| load csv file with pandas | sort dataframe ‘jdf’by the values of column ’scores’ |
| loop files recursive | sort pandas dataframe |
| newline space | standard deviation from group of data in csv |
| pandas add new column based on row values | two deciaml place |
| pandas calculate mean | write ‘final \(\_\) data’to csv file ”price.csv” |
T6-2 | cross validation in scikit learn | multinomial logistic regression model |
| cross validation mean accuracy | numpy load from csv |
| disable warnings | run 5-fold accuracy |
| how to determine cross validation mean in scikit learn | set numpy random seed to 0 |
| how to split dataset in scikit learn | sklearn 5 fold cross validation |
| how to split dataset in scikit learn | sklearn 5-fold cross validation |
| linear regressor 5 folder cross validation | sklearn cross validation x, y for 5 folds |
| load wine dataset | sklearn ignore warnings |
T7-1 | how to choose plot size in inches | plt set x axis tick range |
| how to choose plot title in matplotlib | plt set xtick font size |
| how to create ascatter plot using matplotlib | reformat date |
| how to draw scatter plot for data in csv file | save plot as image |
| plt create figure with size | save plt figure |
| plt date as x axis | scatter |
| plt set x axis label | scatter plot purple |
T7-2 | bar graph side by side | plot bar |
| bar plot with multiple bars per label | plot size |
| get height of bars in subplot bar gaphs | plot title |
| get labels above bars in subplots | plt ax legend |
| group pandas df by two columns | plt ax xlabel |
| horizontal subplot | plt create 3 subplots |
| import matplotlib | plt set title for subplot figure |
| matplotlib grouped bar chart | plt set x tick labels |
| matplotlib multiple histograms | plt show values on bar plot |
| matplotlib theme | pyplot subplots |
| pandas dataframe from csv | select row pandas |
| pandas dataframe groupby column | |