TypeError: n.sort is not a function [duplicate]

This question already has answers here: What is “Shadow Identifier Declaration” in JavaScript? (4 answers) Trying to understand better “variable shadowing” [duplicate] (2 answers) Closed 12 hours ago. I cannot figure out how to use .sort inside of a function When I try to call the function below I get the TypeError: n.sort is not … Read more

Consume data from Yahoo Screener via requests

I ran a query on the Yahoo Screener at: https://finance.yahoo.com/screener/equity/new DevTools shows that the data came back as JSON via: https://query2.finance.yahoo.com/v1/finance/screener?crumb=u0eNvTHfT6U&lang=en-US&region=US&formatted=true&corsDomain=finance.yahoo.com So I tried to manually request the data with: import json import requests url = “https://query2.finance.yahoo.com/v1/finance/screener” payload = json.loads(‘{“size”:25,”offset”:0,”sortField”:”intradaymarketcap”,”sortType”:”DESC”,”quoteType”:”EQUITY”,”topOperator”:”AND”,”query”:{“operator”:”AND”,”operands”:[{“operator”:”or”,”operands”:[{“operator”:”EQ”,”operands”:[“region”,”us”]}]},{“operator”:”or”,”operands”:[{“operator”:”LT”,”operands”:[“intradaymarketcap”,2000000000]},{“operator”:”BTWN”,”operands”:[“intradaymarketcap”,2000000000,10000000000]}]}]},”userId”:””,”userIdType”:”guid”}’) header = { “authority”: “query2.finance.yahoo.com”, “method”:”POST”, “path”:”/v1/finance/screener?crumb=umZV3T8[ETC…]&lang=en-US&region=US&formatted=true&corsDomain=finance.yahoo.com”, “scheme”:”https”, “Accept”:”*/*”, “Accept-Encoding”:”gzip, deflate, br”, “Accept-Language”:”en-US,en;q=0.9″, “Access-Control-Request-Headers”:”content-type”, “Access-Control-Request-Method”:”POST”, … Read more

Combining Multi-table Tableau Hyperfiles?

Looking for an easy way in python (or library/tools) to combine multiple, multi-table hyperfiles into 1 file to upload to Tableau Desktop. I’ve been able to accomplish this by converting to csv, and back to hyper but its tedious and inefficient larger scale. Hoping there’s a better option out there. Can you edit your question … Read more

show tables from different sql tables that unrelated

i want to show 2 tables that contain diffent information in a single codeigniter view page heres the code on model.php (they are in the same class > public function showPlants(){ > return $this->db->get(‘plantsdata’); > } > > public function showAnimals(){ > return $this->db->get(‘animalsdata’); > } the code on controller.php > public function plantsandanimals() { … Read more

adding css to ejs file

Im beginner and im practice to study nodejs (empress) every thing it’s going smoothly untill i css my file viewEngine file const path = require(‘path’); const express = require(‘express’); const configViewEngine = (app)=>{ app.set(‘views’, path.join(‘./src’,’views’ )); app.set(‘view engine’, ‘ejs’) app.use(express.static(path.join(‘./src’,’public’))) } module.exports=configViewEngine; homePage.ejs file <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> … Read more

dynamic imports/exports components in vue.js with .ts files

In Vue.js project, i have a file services.ts which contains code export { default as UserService } from “@/views/user/services/UserService”; export { default as LoginHistoryService } from “@/views/user/services/LoginHistoryService”; export { default as PermissionGroupService } from “@/views/permission-group/services/PermissionGroupService”; export { default as PermissionService } from “@/views/permission/services/PermissionService”; export { default as ManufacturerService } from “@/views/manufacturer/services/ManufacturerService”; export { default as … Read more