World Map

Fri 14 November 2025

title: "World Map" author: "Raja CSP Raman" date: 2019-05-07 description: "-" type: technical_note draft: false


import geopandas
world = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
world
pop_est continent name iso_a3 gdp_md_est geometry
0 920938 …

Category: geopandas

Read More

Xml-File-To-Dict

Fri 14 November 2025

title: "XML File to Dictionary" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


import xmltodict
import pprint
import json
with open('sample.xml') as fd:
    doc1 = xmltodict.parse(fd.read())
doc1
OrderedDict([('note',
              OrderedDict([('to', 'Tove'),
                           ('from', 'Jani'),
                           ('heading', 'Reminder'),
                           ('body', "Don't forget me this weekend …

Category: basics

Read More

Xml-To-Dict

Fri 14 November 2025

title: "XML to Dictionary" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


import xmltodict
import pprint
import json
xml_content = """
     <note>
       <to>Tove</to>
       <from>Jani</from>
       <heading>Reminder</heading>
       <body>Don't forget me this weekend!</body>
   </note>
"""
xml_content
"\n     <note>\n       <to>Tove</to>\n       <from …

Category: basics

Read More

Xml-To-Json

Fri 14 November 2025

title: "XML to JSON" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


import xmltodict
import pprint
import json
xml_content = """
     <note>
       <to>Tove</to>
       <from>Jani</from>
       <heading>Reminder</heading>
       <body>Don't forget me this weekend!</body>
   </note>
"""
xml_content
"\n     <note>\n       <to>Tove</to>\n       <from …

Category: basics

Read More

Yahoo-Data-2

Fri 14 November 2025

import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: ml312-2024; pyv: 3.12.7 | packaged by Anaconda, Inc. | (main, Oct  4 2024, 13:27:36) [GCC 11.2.0]'
# !pip install yfinance --upgrade --no-cache-dir
print(pyu.ps2("pandas yfinance"))
pandas==2.2.3
yfinance==0.2.51

import yfinance as …

Category: pandas

Read More

Yahoo-Data-3

Fri 14 November 2025

import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: ml312-2024; pyv: 3.12.7 | packaged by Anaconda, Inc. | (main, Oct  4 2024, 13:27:36) [GCC 11.2.0]'
print(pyu.ps2("pandas"))
pandas==2.2.3

import yfinance as yf
import pandas as pd
from datetime import datetime

# Define …

Category: pandas

Read More

Yb-Bikeshare

Fri 14 November 2025

title: "YB Bikeshare Visualizer" author: "Raja CSP Raman" date: 2019-04-20 description: "-" type: technical_note draft: false


import pandas as pd
from yellowbrick.features import Rank2D
def load_yb_data(name = 'bikeshare'):
    folder_path = name+'/'+name
    return pd.read_csv('/Users/rajacsp/datasets/yb_data/'+(folder_path)+'.csv')
data = load_yb_data('bikeshare')
X = data[[
    "season", "month", "hour", "holiday", "weekday …

Category: yellowbrick

Read More

Yb Load Data

Fri 14 November 2025

title: "YB Load Data" author: "Raja CSP Raman" date: 2019-04-20 description: "-" type: technical_note draft: false


import pandas as pd
def load_yb_data(name = 'energy'):
    folder_path = name+'/'+name
    return pd.read_csv('/Users/rajacsp/datasets/yb_data/'+(folder_path)+'.csv')
data = load_yb_data('spam')

print(data.head(2))
   word_freq_make  word_freq_address  word_freq_all  word_freq_3d  \
0            0.21               0 …

Category: yellowbrick

Read More

Yb-Sample

Fri 14 November 2025

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


import pandas as pd
def load_yb_data(name = 'energy'):
    folder_path = name+'/'+name
    return pd.read_csv('/Users/rajacsp/datasets/yb_data/'+(folder_path)+'.csv')
from yellowbrick.features import ParallelCoordinates
from sklearn.model_selection import train_test_split
from sklearn.datasets import load_breast_cancer
# Load …

Category: yellowbrick

Read More

Zzemp

Fri 14 November 2025
# Created: 20250103
import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: ml312-2024; pyv: 3.12.7 | packaged by Anaconda, Inc. | (main, Oct  4 2024, 13:27:36) [GCC 11.2.0]'
print(pyu.ps2("requests"))
requests==2.32.3


Score: 0

Category: stockmarket

Read More
Page 143 of 146

« Prev Next »