- Library import (nlp, numpy, pandas, matplotlib, seaborn etc.)
- NLTK downloads (checking packages' status)
- Importing data
- Data analysis (EDA)
- Converting target/classes to int class type (Like orange : 0, red : 1)
- Converting dtype text data to string type with astype
- Regex
- Data visualization
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
INSERT INTO persons(name,country,image) VALUES( | |
'George Washington', | |
'United States of America', | |
pg_read_binary_file('D:\GeorgeWashington.png') | |
); |
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
private void RestartButton_Click(object sender, RoutedEventArgs e) | |
{ | |
Application.Current.Shutdown(); | |
System.Diagnostics.Process.Start(Environment.GetCommandLineArgs()[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
#Getting Current Date in Python | |
from datetime import datetime | |
now=datetime.now() | |
dateformat=now.strftime("%d.%m.%y %H:%M") | |
print("Today's date "+str(dateformat)) |
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
#include <iostream> | |
//#include <conio.h> for windows users who will use getch() in switch condition | |
using namespace std; | |
int main() | |
{ | |
char ch; | |
switch(scanf(&ch)) | |
{ |
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
Afganistan | |
Almanya | |
Amerika Birleşik Devletleri | |
Andora | |
Angola | |
Antigua ve Barbuda | |
Arjantin | |
Arnavutluk | |
Avustralya | |
Avusturya |
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
/*Assume that x:Name for Grid is myGrid in XAML*/ | |
private void Window_SizeChanged(object sender, SizeChangedEventArgs e) | |
{ | |
myGrid.Width = e.NewSize.Width; | |
myGrid.Height = e.NewSize.Height; | |
double xc = 1, yc = 1; //xc = changed width referring to x axis, yc = changed width referring to y axis | |
if (e.PreviousSize.Width != 0) | |
xc = (e.NewSize.Width / e.PreviousSize.Width); |