I am having 1 dataframe "csv" as below
movieId |               title|              genres|
+-------+--------------------+--------------------+
|      1|    Toy Story (1995)|Adventure|Animati...|
|      2|      Jumanji (1995)|Adventure|Childre...|
COMMAND1 : print("PRINT",csvData.dtypes)
OUTPUT1 : ('PRINT', [('movieId', 'int'), ('title', 'string'), ('genres', 'string')])
COMMAND2 : print ("SAMPLE dictionary**",dict(csvData.dtypes))
OUTPUT2 :'SAMPLE dictionary**', {'genres': 'string', 'movieId': 'int', 'title': 'string'}
after comparing both OUTPUT we can see that dict() function changes the order of elements , how can i avoid that?
 
    