from deephaven import empty_table
source = empty_table(100).update(
formulas=[
"X = 0.1 * i",
"SinX = X % 0.2 < 0.01 ? NULL_DOUBLE : sin(X)",
"CosX = cos(X)",
"TanX = tan(X)",
]
)
from deephaven import write_csv
write_csv(source, "/data/TrigFunctions.csv")
write_csv(source, "/data/Cosine.csv", ["X", "SinX"])
from deephaven import read_csv
result = read_csv("/data/TrigFunctions.csv")
iris = read_csv(
"https://media.githubusercontent.com/media/deephaven/examples/main/Iris/csv/iris.csv"
)
deniro_default = read_csv(
"https://media.githubusercontent.com/media/deephaven/examples/main/DeNiro/csv/deniro_headerless.csv",
headless=True,
)
import deephaven.dtypes as dht
header = {"Year": dht.int64, "Score": dht.int64, "Title": dht.string}
deniro_header = read_csv(
"https://media.githubusercontent.com/media/deephaven/examples/main/DeNiro/csv/deniro_headerless.csv",
header=header,
headless=True,
)
deniro_tsv = read_csv(
"https://raw.githubusercontent.com/deephaven/examples/main/DeNiro/csv/deniro.tsv",
delimiter="\t",
)
deniro_psv = read_csv(
"https://raw.githubusercontent.com/deephaven/examples/main/DeNiro/csv/deniro.psv",
delimiter="|",
)