Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
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
# Name: c_usda_quick_stats.py | |
# Author: Randy Runtsch | |
# Date: March 29, 2022 | |
# Project: Query USDA QuickStats API | |
# Author: Randall P. Runtsch | |
# | |
# Description: Query the USDA QuickStats api_GET API with a specified set of | |
# parameters. Write the retrieved data, in CSV format, to a file. | |
# | |
# See Quick Stats (NASS) API user guide: https://quickstats.nass.usda.gov/api |
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
from typing import List | |
def http_error(status: int) -> str: | |
match status: | |
case 400: | |
return "Bad request" | |
case 404: | |
return "Not found" | |
case 418: |
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
## docker-compose para correr wordpress con una base de datos en mysql | |
## by PeladoNerd https://youtu.be/eoFxMaeB9H4 | |
version: '3.1' | |
services: | |
wordpress: | |
image: wordpress:php7.1-apache | |
ports: |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Jun 02 17:02:32 2017 | |
@author: Vangelis@logical-invest.com | |
This script will pull the symbols from your specified Amibroker database and download historical EOD dividend adjusted data from Tiingo.com and will store them | |
in a folder (Destop/Data/TiingoEOD) as csv files, one for each stock (APPLE.csv SPY.csv, etc) | |
It will then attempt to open Amibroker and import the csv files. | |
You need: | |
1. To add your own Token number you will get when you register at Tiingo.com (line 51) | |
2. Specify the Amibroker database you want updated (line 99) |
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
def treatoutliers(self, df=None, columns=None, factor=1.5, method='IQR', treament='cap'): | |
""" | |
Removes the rows from self.df whose value does not lies in the specified standard deviation | |
:param columns: | |
:param in_stddev: | |
:return: | |
""" | |
# if not columns: | |
# columns = self.mandatory_cols_ + self.optional_cols_ + [self.target_col] | |
if not columns: |