Movie Review -The Batman is the worst Batman movie sans Ben Affleck

We have seen Batman movies before. The Gold Standard of the Nolan Trilogy. The original series of Keaton-Kilmer-Clooney (Clooney was terrible too)

Ben Affleck was a bad Batman , but better than Daredevil

This one is an attempt to make Batman the Greatest Detective some angst and brooding. It fails

All you have is a wasted effort and a long movie

I could be a better Batman. Its like that

MLFlow on Azure Databricks

On Azure Databricks you can create experiments using MLFlow

notebook_path = ‘/Users/Ajay/Folder’

notebook_path = notebook_path
mlflow.set_experiment(notebook_path + ‘_experiments’)

with mlflow.start_run(run_name=”ExperimentRun”+curr_ts):


Converting Spark DataFrame to Pandas DataFrame

%pythondf=spark.sql(“select * from name_csv”)

pandas_df = df.toPandas()

Creating SQL Table using Spark

acc_1=spark.sql(“create table test_spark as select columns, column,columnc from table where to_date(ac_opn_dt) < ‘2012-07-01’ )”)

# Given pandas dataframe,  return a spark’s dataframe.
def pandas_to_spark(pandas_df):
columns = list(pandas_df.columns)
types = list(pandas_df.dtypes)
struct_list = []
for column, typo in zip(columns, types):
struct_list.append(define_structure(column, typo))
p_schema = StructType(struct_list)
return sqlContext.createDataFrame(pandas_df, p_schema)

%d bloggers like this: