Filter By

Fri 14 November 2025

title: "Filter By" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


import os
import sys

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, ForeignKey, Integer, String
Base = declarative_base()
class City(Base):
    __tablename__ = 'city'
    # Here we define …

Category: sqlalchemy

Read More

Filter-By-Multiple

Fri 14 November 2025

title: "Filter By Multiple" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


import os
import sys

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, ForeignKey, Integer, String
Base = declarative_base()
class City(Base):
    __tablename__ = 'city'
    # Here we …

Category: sqlalchemy

Read More

Filter-By-Single-Column

Fri 14 November 2025

title: "Filter by single column" author: "Rj" date: 2019-04-22 description: "-" type: technical_note draft: false


import numpy as np
import pandas as pd
df = pd.read_csv('abc.csv')
df.shape
(7, 5)
df

Category: data-wrangling

Read More

Filter-Like

Fri 14 November 2025

title: "Filter Like" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


import os
import sys

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, ForeignKey, Integer, String
Base = declarative_base()
class City(Base):
    __tablename__ = 'city'
    # Here we define …

Category: sqlalchemy

Read More

Filter-With-Query

Fri 14 November 2025

title: "Filter with Query" author: "Rj" date: 2019-04-22 description: "-" type: technical_note draft: false


import numpy as np
import pandas as pd
df = pd.read_csv('abc.csv')
df
student language science maths history …

Category: data-wrangling

Read More

Filter-With-Value-Comparison

Fri 14 November 2025

title: "Filter With Value Comparison" author: "Rj" date: 2019-04-24 description: "-" type: technical_note draft: false


import numpy as np
import pandas as pd
df = pd.read_csv('abc.csv')
df
student language science maths …

Category: data-wrangling

Read More

Find-All

Fri 14 November 2025

title: "Find All" author: "Raja CSP Raman" date: 2019-04-20 description: "-" type: technical_note draft: false


content = """OSPF Process 1 with Router ID 1.1.1.1
                       Area: 0.0.0.11
               Link State Database  
               Router test 
               Maintenance
"""
content
'OSPF Process 1 with Router ID 1.1.1.1\n                       Area: 0 …

Category: regex

Read More

Find Multiple Whitespace

Fri 14 November 2025

title: "Find Multiple Whitespace" author: "Raja CSP Raman" date: 2019-04-20 description: "-" type: technical_note draft: false


import re
help(re.split)
Help on function split in module re:

split(pattern, string, maxsplit=0, flags=0)
    Split the source string by the occurrences of the pattern,
    returning a list containing the resulting …

Category: regex

Read More

Find-Odd

Fri 14 November 2025

title: "Find Odd" author: "Raja CSP Raman" date: 2019-05-02 description: "-" type: technical_note draft: false


import gensim.downloader as api
fasttext_model300 = api.load('fasttext-wiki-news-subwords-300')
print(fasttext_model300.doesnt_match(['one', 'two', 'eleven', 'thirty', 'tennis']))  
tennis


/Users/rajacsp/anaconda3/envs/py36/lib/python3.6/site-packages/gensim/models/keyedvectors.py:858: FutureWarning: arrays to …

Category: gensim-samples

Read More

Find Python Location

Fri 14 November 2025

title: "Find Python Location" author: "Rj" date: 2019-04-20 description: "-" type: technical_note draft: false


import sys
print(sys.executable)
/Users/rajacsp/anaconda3/bin/python


Score: 0

Category: basics

Read More
Page 102 of 146

« Prev Next »