Giter Site home page Giter Site logo

Comments (3)

JamesKBowler avatar JamesKBowler commented on June 2, 2024 1

Issue resolved in the below Pull Request
https://github.com/mhallsmoore/qsforex/pull/23

Cheers!

from qsforex.

yabolgha avatar yabolgha commented on June 2, 2024

from qsforex.

JamesKBowler avatar JamesKBowler commented on June 2, 2024

Hi @yabolgha,
Thank you for responding so quickly and my apologies for not...Tis the season.

I tried your suggestion however this did not work and gave a traceback below. I received the same error when set True. The error above was given when set to None.

(qsforex) jbowler@GEN-U-QS-01:~/projects/qsforex$ python examples/mac.py
Traceback (most recent call last):
File "examples/mac.py", line 27, in
equity=settings.EQUITY
File "/home/jbowler/venv/qsforex/local/lib/python2.7/site-packages/qsforex/backtest/backtest.py", line 29, in init
self.ticker = data_handler(self.pairs, self.events, self.csv_dir)
File "/home/jbowler/venv/qsforex/local/lib/python2.7/site-packages/qsforex/data/price.py", line 107, in init
self.file_dates[self.cur_date_idx]
File "/home/jbowler/venv/qsforex/local/lib/python2.7/site-packages/qsforex/data/price.py", line 143, in _open_convert_csv_files_for_day
names=("Time", "Ask", "Bid", "AskVolume", "BidVolume")
File "/home/jbowler/venv/qsforex/local/lib/python2.7/site-packages/pandas/io/parsers.py", line 646, in parser_f
return _read(filepath_or_buffer, kwds)
File "/home/jbowler/venv/qsforex/local/lib/python2.7/site-packages/pandas/io/parsers.py", line 389, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/home/jbowler/venv/qsforex/local/lib/python2.7/site-packages/pandas/io/parsers.py", line 726, in init
self.options, self.engine = self._clean_options(options, engine)
File "/home/jbowler/venv/qsforex/local/lib/python2.7/site-packages/pandas/io/parsers.py", line 858, in _clean_options
_validate_header_arg(options['header'])
File "/home/jbowler/venv/qsforex/local/lib/python2.7/site-packages/pandas/io/common.py", line 195, in _validate_header_arg
raise TypeError("Passing a bool to header is invalid. "
TypeError: Passing a bool to header is invalid. Use header=None for no header or header=int or list-like of ints to specify the row(s) making up the column names

from qsforex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.