Welcome to Ed2Ti Blog.

My journey on IT is here.

.

Professor: Iyad Koteich

You are organizing a party for your group of students.

  1. Check how many students are interested
  2. You are limited to accept 20 students only

Make a Python program that will choose 20 randomly out of All interested students

import pandas as pd
import numpy as np
df = pd.read_csv("class.csv")
df.head()
data = df.values
array = np.random.choice(16, 10)
array = np.array(array)
for i in array:
    print(data[i][3])

I did an adaptation to attend calss.csv file.

You can find all code at https://github.com/ed2ti/exercise01

Introduction - Kaggle

- Posted in Data Science Journey by

In July I was introduced by my Professor (Iyad Koteich), at Trebas Institute, to the Kaggle platform. I confess that at the first moment I don't gave the necessary attention to him (sorry Professor). After one week, browsing a website, I read a document about Data Science, and the name Kaggle was mentioned again.

Well, I thought to myself, I need to know what Kaggle is and why a lot of people talk about it.

After doing my registering, the Kaggle introduced me to a problem: The Titanic Problem. (was amazing)

This month I'll do my best to get the best points resolving the Titanic Problem at Kaggle platform and I'll share here the steps.

#The logic and the python program. #

Kaggle Website

A little about me!

- Posted in Uncategorized by

Hi guys.

My name is Edward and I live in Montreal/QC/Canada. In this blog, I'll share my journey in all kinds of technology areas that I worked and studied.

I hope you enjoy this blog!

About me:

Degree: Information Systems
Master Degree: Cloud Computing, Project Management, Distributed Systems (not completed)
Certifications:
ASW - Foundation
Microsoft - PMP
ITIL v3
Scrum
(And others!)

At this moment, what you need to know is that my first computer was a MSX (with a Z80 processor). ** 1986 **

At Trebas (Computer Hardware & Software Environment), the challenger proposed by Ghazal G.Fard starts with a WebServer in GoLang.

Before commenting on the code, we need to understand two differences between python and GoLang.

1) To "ignore" a line in Python we use # and in Golang we use // Some other languages like C, use #, and others, like PHP, use // or /* */.

2) In python I don't need to define the main() function.

We need to keep in mind that we need to develop clean code. For example, is a good practice to use MVC (Model, View, Controller) techniques.

On the code, we need to import three packages: "fmt", "log", "net/http"

The fmt package we use to give a response. Can be on screen, or in this case, a web response. For the log package, we are just writing a log. The net/http we use to start a webserver.

There are a lot of concepts that we can present in the future.

//# *************************** #
//# College: Trebas Institute 
//# Professor: Ghazal G.Fard
//# Class: Edward
//# Day: 2022-06-21
//# *************************** #

package main
import (
    "fmt"
    "log"
    "net/http"
)

func main() {
    http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request){
        fmt.Fprintf(w, "Hello!")
    })


    fmt.Printf("Starting server at port 8080n")
    if err := http.ListenAndServe(":8080", nil); err != nil {
        log.Fatal(err)
    }
}

In this example, we do not use a concept of routes. Next week I'll start a new project to demonstrate rote on the GoLang web server.

Thank you for your time, and I hope that you can get an answer to your question.