Informatics Practices
While writing a DataFrame onto a CSV file, which argument would you use in to_csv() for NaN values' representation as NULL ?
- NaN = NULL
- na_rep = NULL
- na_value = NULL
- na = NULL
Related Questions
To skip 1st, 3rd and 5th row of CSV file, which argument will you give in read_csv() ?
- skiprows = 1 | 13 | 5
- skiprows = [1, 5, 1]
- skiprows = [1, 3, 5]
- any of these
While reading from a CSV file, to use a column's values as index labels, argument given in read_CSV() is :
- index
- index_col
- index_values
- index_label
Which of the following libraries let you establish a connection with a MySQL database from within Python ?
- mysql.connector
- Pymysql, sqlalchemy
- pandas
- numpy
In pandas.read_sql(<A>, <B>), <A> is
- connection name
- table name
- SQL query string
- database name