- Http://decisionstats.wordpress.com
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ |
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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# An Tutorial for Data Science in Python\n", | |
"\n", | |
"Python is an amazing language and here we show a comprehensive tutorial in it for usage in Data Science.\n", | |
"\n", |
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>web scraping-yelp.ca</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> |
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
names2<-c("Ajay","Vijay","Rajesh","Arinjay","Ram") | |
gsub("jay","Ohjay",names2) | |
names3=toupper(names2) | |
names3 | |
grepl("jay",names3) | |
library(stringr) | |
names4=str_to_upper(names2) | |
names4 | |
money=c("$50000","50,000",50000) | |
money2=gsub(",","",money) |
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ |
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
{"nbformat_minor": 0, "cells": [{"execution_count": 1, "cell_type": "code", "source": "import pandas as pd", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 2, "cell_type": "code", "source": "import os as os", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 3, "cell_type": "code", "source": "a=os.getcwd()", "outputs": [], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 4, "cell_type": "code", "source": "os.listdir(a)", "outputs": [{"execution_count": 4, "output_type": "execute_result", "data": {"text/plain": "['.continuum',\n '.enstaller4rc',\n '.idlerc',\n '.ipynb_checkpoints',\n '.ipython',\n '.matplotlib',\n '.RData',\n '.spyder2',\n 'AppData',\n 'Application Data',\n 'Canopy',\n 'Contacts',\n 'Cookies',\n 'Desktop',\n 'Documents',\n 'Downloads',\n 'Favorites',\n 'intermediate python notebook.ipynb',\n 'Links',\n 'Local Settings',\n 'Music',\n 'My Documents',\n 'my first R script file.R',\n 'My_First_Python_ |
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
{"nbformat_minor": 0, "cells": [{"execution_count": 77, "cell_type": "code", "source": "height = 150\n", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 78, "cell_type": "code", "source": "height", "outputs": [{"execution_count": 78, "output_type": "execute_result", "data": {"text/plain": "150"}, "metadata": {}}], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 79, "cell_type": "code", "source": "print(height)", "outputs": [{"output_type": "stream", "name": "stdout", "text": "150\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 80, "cell_type": "code", "source": "height%3\n", "outputs": [{"execution_count": 80, "output_type": "execute_result", "data": {"text/plain": "0"}, "metadata": {}}], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 81, "cell_type": "code", "source": "test=56\ntest%4", "outputs": [{"execution_count": 81, "output_type": "execute_result", "data": {"text/plain": "0"}, "metadata" |
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
{"nbformat_minor": 0, "cells": [{"execution_count": 2, "cell_type": "code", "source": "import pandas as pd", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 3, "cell_type": "code", "source": "import os as os", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 7, "cell_type": "code", "source": "a=os.getcwd()", "outputs": [], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 8, "cell_type": "code", "source": "os.listdir(a)", "outputs": [{"execution_count": 8, "output_type": "execute_result", "data": {"text/plain": "['.continuum',\n '.enstaller4rc',\n '.idlerc',\n '.ipynb_checkpoints',\n '.ipython',\n '.matplotlib',\n '.RData',\n '.spyder2',\n 'AppData',\n 'Application Data',\n 'Canopy',\n 'Contacts',\n 'Cookies',\n 'Desktop',\n 'Documents',\n 'Downloads',\n 'Favorites',\n 'intermediate python notebook.ipynb',\n 'Links',\n 'Local Settings',\n 'Music',\n 'My Documents',\n 'my first R script file.R',\n 'My_First_Python_ |
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ |