Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Usage
revoscalepy.rx_get_var_names(data)
Description
Read the variable names for data source or data frame
Arguments
data
an RxDataSource object, a character string specifying the “.xdf” file, or a data frame. If a Spark compute context is being used, this argument may also be an RxHiveData, RxOrcData, RxParquetData or RxSparkDataFrame object or a Spark data frame object from pyspark.sql.DataFrame.
Returns
list of strings containing the names of the variables in the data source or data frame.
See also
rx_data_step,
rx_get_info,
rx_get_var_info.
Example
import os
from revoscalepy import RxOptions, RxXdfData, rx_get_var_names
sample_data_path = RxOptions.get_option("sampleDataDir")
claims_ds = RxXdfData(os.path.join(sample_data_path, "claims.xdf"))
info = rx_get_var_names(claims_ds)
print(info)
Output:
RowNum age car.age type cost number