Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: talib - RSI error
Post: RE: talib - RSI error
|
sambanerjee |
General Coding Help |
3 |
3,467 |
Feb-03-2021, 11:27 AM |
|
|
Thread: talib - RSI error
Post: RE: talib - RSI error
this is the entire code with the imports
import pandas as pd
import sqlite3
import talib
import numpy as np
import yfinance as yf
from datetime import datetime
import os
import csv
from csvsort impor... |
|
sambanerjee |
General Coding Help |
3 |
3,467 |
Feb-03-2021, 01:44 AM |
|
|
Thread: talib - RSI error
Post: talib - RSI error
I've been struggling trying to troubleshoot this - please let me know if you need more code / info - thanks
Error Message: Quote:TypeError: Argument 'real' has incorrect type (expected numpy.ndarray... |
|
sambanerjee |
General Coding Help |
3 |
3,467 |
Feb-02-2021, 08:40 PM |
|
|
Thread: Get JSON Value based on Another value
Post: RE: Get JSON Value based on Another value
(Jan-14-2021, 04:50 PM)buran Wrote: for trade in data['trades']:
print(f"{trade['stockSymbol']}: {trade['bid']}")where data is JSON object, i.e. after you load the JSON string
Thank you - I'll ... |
|
sambanerjee |
General Coding Help |
2 |
2,066 |
Jan-15-2021, 12:54 PM |
|
|
Thread: Get JSON Value based on Another value
Post: Get JSON Value based on Another value
Hi -
This is the JSON below. I'm looking to get the value of 'bid' for each 'StockSymbol' - any help for this newbie ?
Output:{
"currentPage":1,
"trades":[
{
"stockSymbol":"AA... |
|
sambanerjee |
General Coding Help |
2 |
2,066 |
Jan-14-2021, 04:23 PM |
|
|
Thread: Unable to Update SQLite Table
Post: RE: Unable to Update SQLite Table
u are rockstar ! - thank You @Larz60+
I see the issue and hopefully can troubleshoot from here on ... appreciate the help here -
Cheers! |
|
sambanerjee |
General Coding Help |
5 |
2,973 |
Sep-30-2020, 12:15 PM |
|
|
Thread: Unable to Update SQLite Table
Post: RE: Unable to Update SQLite Table
Sorry missed the imports and the initializations -- here you go
import import_ipynb
import talib
import numpy
import yfinance as yf
import datetime as dt
import time
from datetime import datetime, ... |
|
sambanerjee |
General Coding Help |
5 |
2,973 |
Sep-29-2020, 03:42 PM |
|
|
Thread: Unable to Update SQLite Table
Post: Unable to Update SQLite Table
Hi:
I am not able to get the update statement to work :( - any help on what I'm missing ?
c.execute("select DISTINCT Symbol from StockData")
tickers = c.fetchall()
for row in tickers:
c.exe... |
|
sambanerjee |
General Coding Help |
5 |
2,973 |
Sep-29-2020, 02:45 PM |
|
|
Thread: Bulk add column to dataframe
Post: RE: Bulk add column to dataframe
Anyone ?!? **wall** ... bueller ? |
|
sambanerjee |
General Coding Help |
1 |
2,135 |
Sep-24-2020, 07:34 PM |
|
|
Thread: Bulk add column to dataframe
Post: Bulk add column to dataframe
Hi:
I am trying to add a few columns to a dataframe - here is the code
import import_ipynb
import talib
import numpy
import yfinance as yf
import datetime as dt
import time
from datetime import d... |
|
sambanerjee |
General Coding Help |
1 |
2,135 |
Sep-24-2020, 01:38 PM |
|
|
Thread: plotly.graph_objs - Scatter mode error
Post: RE: plotly.graph_objs - Scatter mode error
OK! It worked !!
def _generate_traces(name_df_color_data):
traces = []
for name, df, color in name_df_color_data:
traces.append(go.Scatter(
name=name,
x=df.in... |
|
sambanerjee |
General Coding Help |
14 |
9,165 |
Mar-18-2020, 02:54 PM |
|
|
Thread: plotly.graph_objs - Scatter mode error
Post: RE: plotly.graph_objs - Scatter mode error
Here is the traceback **wall**
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
3 m... |
|
sambanerjee |
General Coding Help |
14 |
9,165 |
Mar-18-2020, 01:20 PM |
|
|
Thread: Unable to install Python
Post: RE: Unable to install Python
I cannot see the image - but seeing the logs and googling the last few lines it seems like a Windows issue - is your OS updated with the latest patches ? |
|
sambanerjee |
General Coding Help |
2 |
2,111 |
Mar-18-2020, 12:44 AM |
|
|
Thread: plotly.graph_objs - Scatter mode error
Post: RE: plotly.graph_objs - Scatter mode error
Thanks @Larz60+ for sticking on with this - this is project_helper.py
import helper
import plotly.graph_objs as go
import plotly.offline as offline_py
offline_py.init_notebook_mode(connected=True)
... |
|
sambanerjee |
General Coding Help |
14 |
9,165 |
Mar-17-2020, 09:33 PM |
|
|
Thread: plotly.graph_objs - Scatter mode error
Post: RE: plotly.graph_objs - Scatter mode error
still no luck - same error :(
quite baffled at the error !
\S |
|
sambanerjee |
General Coding Help |
14 |
9,165 |
Mar-17-2020, 07:52 PM |
|
|
Thread: plotly.graph_objs - Scatter mode error
Post: RE: plotly.graph_objs - Scatter mode error
line 9 & 10 reads
mode='markers',
lines={'color': color}))
if I remove the comma after 'markers' then it will error out **huh**
the error currently I'm getting is
ValueError:
Invalid ... |
|
sambanerjee |
General Coding Help |
14 |
9,165 |
Mar-17-2020, 03:52 PM |
|
|
Thread: plotly.graph_objs - Scatter mode error
Post: RE: plotly.graph_objs - Scatter mode error
Appreciate being at this --
I'm on Python version 3.7.2
I ran pip install jupyterlab==1.2 "ipywidgets==7.5" but still get the same error
I made changes to the code but still get the same error
def... |
|
sambanerjee |
General Coding Help |
14 |
9,165 |
Mar-17-2020, 12:16 PM |
|
|
Thread: plotly.graph_objs - Scatter mode error
Post: RE: plotly.graph_objs - Scatter mode error
Thanks for the response - however the solution in the link Project Solution Link is not working. Hence posted here for any help.
It might have something to do with the version of plotly or an enviro... |
|
sambanerjee |
General Coding Help |
14 |
9,165 |
Mar-16-2020, 09:36 PM |
|
|
Thread: plotly.graph_objs - Scatter mode error
Post: RE: plotly.graph_objs - Scatter mode error
any help on this please - I'm still not able to see the issue :(
It is complaining on this function I believe - not sure what it could be ... any help will be appreciated - thanks
def _generate_trac... |
|
sambanerjee |
General Coding Help |
14 |
9,165 |
Mar-16-2020, 12:59 PM |
|
|
Thread: plotly.graph_objs - Scatter mode error
Post: plotly.graph_objs - Scatter mode error
Hi:
I'm working on a project (I'm new to Python) and am stuck at a method - any help will be greatly appreciated.
This is the portion that is error-ing out
monthly_close = resample_prices(close)
... |
|
sambanerjee |
General Coding Help |
14 |
9,165 |
Mar-12-2020, 06:10 PM |