Find Two Digits With Spaces
title: "Find Two Digits with Spaces"
author: "Raja CSP Raman"
date: 2019-04-20
description: "-"
type: technical_note
draft: false
text = "It happened on Feb 21 at 3:30"
answer= re.findall(r'\b\d{2}\b', text)
print(answer)
# To match only two digits with spaces
answers = re …
Read More
Finnish-Translator
import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: ml311; pyv: 3.11.10 (main, Oct 3 2024, 07:29:13) [GCC 11.2.0]'
print(pyu.ps2("translate"))
# !pip install translate==3.6.1
from translate import Translator
# Your contents
contents = [
"Hello, how are you?",
"I …
Read More
Food-Csv-Github-Live
# https://github.com/rajacsp/public-dataset/blob/master/food.csv
import requests
import pandas as pd
FILEPATH = 'https://raw.githubusercontent.com/rajacsp/public-dataset/master/food.csv'
r = requests.get(FILEPATH)
b'Food_ID,Food_Name,Category,Price,Calories,Available\n1,Pizza,Fast Food,8.99 …
Read More
Food-Plot
title: "Food Plot"
author: "Rj"
date: 2019-05-06
description: "List Test"
type: technical_note
draft: false
import pandas as pd
import numpy as np
abc = np.array([
[9, 13, 10],
[7, 12, 9],
[19, 11, 8],
[12, 10, 11]
])
array([[ 9, 13, 10],
[ 7, 12, 9],
[19, 11, 8],
[12, 10 …
Read More
Food Points
title: "Food Points"
author: "Rj"
date: 2019-04-24
description: "-"
type: technical_note
draft: false
import numpy as np
import pandas as pd
data = {
'dinner' : ['chicken wrap', 'stake', 'rudy burger', 'sushi', 'chicken teriyaki', 'caesar salad']
}
Read More
Fourier-Transform
title: "Fourier Transform"
author: "Raja CSP Raman"
date: 2019-05-06
description: "-"
type: technical_note
draft: false
from scipy.fftpack import fft
import numpy as np
x = np.array([1, 2, 3, 4])
array([10.+0.j, -2.+2.j, -2.+0.j …
Read More