Can we have dynamic parameters when creating a dataframe? #2380
-
From the documentation, x = np.arange(2) What should be done if we only know the column names and number of columns at runtime? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Easier to create from pandas dataframe feature_val=[0.5637]*len(required_features) |
Beta Was this translation helpful? Give feedback.
Easier to create from pandas dataframe
feature_val=[0.5637]*len(required_features)
pandas_df= pd.DataFrame([feature_val], columns=required_features)
pandas_df=vaex.from_pandas(df=pandas_df)
test_df_2 = vaex.concat([df,pandas_df])