19 using System.Collections.Generic;
29 private static readonly IEnumerable<string> _indexNames =
new[] {
"canonical",
"symbol" };
31 private readonly Lazy<PyObject> _dataframe;
47 _dataframe =
new Lazy<PyObject>(InitializeDataFrame, isThreadSafe:
false);
63 public new OptionChain this[
string ticker] {
get {
return base[ticker]; }
set { base[ticker] = value; } }
73 public new OptionChain this[
Symbol symbol] {
get {
return base[symbol]; }
set { base[symbol] = value; } }
75 private PyObject InitializeDataFrame()
77 var dataFrames = this.Select(kvp => kvp.Value.DataFrame).ToList();
78 var canonicalSymbols = this.Select(kvp => kvp.Key);