Data-Science-Regular-Bootcamp icon indicating copy to clipboard operation
Data-Science-Regular-Bootcamp copied to clipboard

Regular practice on Data Science, Machien Learning, Deep Learning, Solving ML Project problem, Analytical Issue. Regular boost up my knowledge. The goal is to help learner with learning resource on Da...

Results 100 Data-Science-Regular-Bootcamp issues
Sort by recently updated
recently updated
newest added

``` # import the opencv library import cv2 # define a video capture object vid = cv2.VideoCapture(0) while(True): # Capture the video frame # by frame ret, frame = vid.read()...

``` import cv2 import numpy as np img = cv2.imread("test.png", 0) img = cv2.GaussianBlur(img,(3,3),0) canny = cv2.Canny(img, 50, 150) cv2.imshow('Canny', canny) cv2.waitKey(0) cv2.destroyAllWindows() ```

``` pattern = r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" str_true = ('[email protected]',) str_false = ('testmail.com', '@testmail.com', 'test@mailcom') for t in str_true: assert(bool(re.match(pattern, t)) == True), '%s is not True' %t for f in str_false: assert(bool(re.match(pattern,...

``` import pandas as pd from matplotlib import pyplot as plt # Read CSV into pandas data = pd.read_csv(r"cars.csv") data.head() df = pd.DataFrame(data) name = df['car'].head(12) price = df['price'].head(12) #...

``` import matplotlib.pyplot as plt import matplotlib.patches as patches from PIL import Image import numpy as np x = np.array(Image.open('geek.png'), dtype=np.uint8) plt.imshow(x) # Create figure and axes fig, ax =...

``` # Import libraries from mpl_toolkits import mplot3d import numpy as np import matplotlib.pyplot as plt # Creating dataset z = np.random.randint(100, size =(50)) x = np.random.randint(80, size =(50)) y...

``` import matplotlib.pyplot as plt import numpy as np fig = plt.figure() a1 = fig.add_axes([0,0,1,1]) x = np.arange(1,11) a1.plot(x,np.exp(x)) a1.set_ylabel('exp') a2 = a1.twinx() a2.plot(x, np.log(x),'ro-') a2.set_ylabel('log') fig.legend(labels = ('exp','log'),loc='upper left')...

``` import matplotlib.pyplot as plt # plot a line, implicitly creating a subplot(111) plt.plot([1,2,3]) # now create a subplot which represents the top plot of a grid with 2 rows...

``` Loading into Pandas DF gam_charge_item_df = pd.read_scv(path) Creating a PySpark dataFrame spark_df = spark.createDataFrame(df) ```

!apt-get install openjdk-8-jdk-headless -qq > /dev/null !wget -q https://downloads.apache.org/spark/spark-2.4.8/spark-2.4.8-bin-hadoop2.7.tgz !tar xf spark-2.4.8-bin-hadoop2.7.tgz !pip install -q findspark