Data Science, Data Visualization, Data Analysis, Data, Machine Learning.
= sqlite3.connect(':memory:') # Write the data to a SQLite table titanic_df.to_sql('titanic', conn, if_exists='replace', index=False) 3. Explore the data with SQL Now that the data is in a SQLite database, we can use SQL queries to explore it. Let’s look at the first 10 rows of the Titanic table: