1. What is Pandas?
    Pandas is a Python library used for data manipulation and analysis.
  2. Why is Pandas used?
    It helps in handling structured data easily and efficiently.
  3. What type of data does Pandas handle?
    Tabular data like Excel, CSV, SQL tables.
  4. How to install Pandas?
    Using pip: pip install pandas
  5. How to import Pandas?
    import pandas as pd
  6. What is a Series?
    A 1-dimensional labeled array in Pandas.
  7. What is DataFrame?
    A 2-dimensional table-like structure in Pandas.
  8. Difference between Series and DataFrame?
    Series = 1D, DataFrame = 2D structure.
  9. What is Pandas used in real life?
    Data cleaning, analysis, AI, ML, finance.
  10. What is index in Pandas?
    Labels used to identify rows.
  11. What is column in Pandas?
    Vertical field in DataFrame.
  12. What is axis in Pandas?
    0 = rows, 1 = columns.
  13. What is NaN?
    Represents missing values.
  14. How to create empty DataFrame?
    pd.DataFrame()
  15. What is head() function?
    Shows first 5 rows.
  16. What is tail() function?
    Shows last 5 rows.
  17. What is shape?
    Returns number of rows and columns.
  18. What is info()?
    Shows summary of DataFrame.
  19. What is describe()?
    Gives statistical summary.
  20. What is dtype?
    Shows data type of column.
  21. How to create Series?
    pd.Series([1,2,3])
  22. How to create DataFrame?
    pd.DataFrame({‘A’:[1,2], ‘B’:[3,4]})
  23. Can Pandas read CSV?
    Yes, using read_csv().
  24. Can Pandas read Excel?
    Yes, using read_excel().
  25. How to read CSV file?
    pd.read_csv(‘file.csv’)
  26. How to write CSV?
    df.to_csv(‘file.csv’)
  27. What is dictionary in Pandas?
    Used to create DataFrame.
  28. Can Pandas use NumPy?
    Yes, fully compatible.
  29. What is list in Pandas?
    Used to create Series or DataFrame.
  30. What is ndarray?
    Numpy array used in Pandas.
  31. What is JSON support?
    Pandas can read/write JSON files.
  32. How to read JSON?
    pd.read_json()
  33. What is default index?
    0,1,2,…
  34. How to set custom index?
    index=[…]
  35. What is column selection?
    Selecting specific columns from DataFrame.
  36. How to select column?
    df[‘column_name’]
  37. How to select multiple columns?
    df[[‘A’,’B’]]
  38. What is row selection?
    Selecting rows using loc/iloc.
  39. What is loc?
    Label-based indexing.
  40. What is iloc?
    Position-based indexing.
  41. What is missing data?
    Data not available (NaN).
  42. How to check missing values?
    isnull().sum()
  43. How to remove missing values?
    dropna()
  44. How to fill missing values?
    fillna()
  45. What is duplicate data?
    Repeated rows.
  46. How to remove duplicates?
    drop_duplicates()
  47. What is sorting?
    Arranging data order-wise.
  48. How to sort values?
    sort_values()
  49. What is filtering?
    Selecting specific condition data.
  50. How to filter data?
    df[df[‘A’]>10]
  51. What is apply()?
    Applies function to data.
  52. What is lambda function?
    Small anonymous function.
  53. What is rename?
    Changing column names.
  54. How to rename column?
    rename()
  55. What is add column?
    Creating new column.
  56. How to add column?
    df[‘new’]=value
  57. How to delete column?
    drop(columns=[‘A’])
  58. What is inplace?
    Modifies original DataFrame.
  59. What is groupby?
    Group data for analysis.
  60. What is aggregation?
    Sum, mean, count operations.
  61. What is merge?
    Combines two DataFrames.
  62. What is join?
    Joins data based on index.
  63. What is concat?
    Joins DataFrames vertically/horizontally.
  64. What is inner join?
    Common records only.
  65. What is outer join?
    All records combined.
  66. What is left join?
    All left table data.
  67. What is right join?
    All right table data.
  68. What is value_counts()?
    Counts unique values.
  69. What is unique()?
    Returns unique values.
  70. What is nunique()?
    Counts unique values.
  71. What is time series?
    Date-based data analysis.
  72. What is datetime?
    Date and time format.
  73. What is resampling?
    Changing time frequency.
  74. What is rolling?
    Moving window calculations.
  75. What is plotting?
    Graph visualization.
  76. Can Pandas plot graphs?
    Yes, using plot().
  77. What is histogram?
    Distribution graph.
  78. What is bar chart?
    Category comparison graph.
  79. What is line chart?
    Trend visualization.
  80. Why Pandas important?
    Used in AI, ML, data science.

📢 Join Our WhatsApp Channel

💼 Get Daily IT Job Updates, Interview Preparation Tips & Instant Alerts directly on WhatsApp.

👉 Join WhatsApp Now

📢 Join Our Telegram Channel

💼 Get Daily IT Job Updates, Interview Tips & Exclusive Alerts directly on Telegram!

👉 Join Telegram

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2022 - 2025 itfreesource.com

Enable Notifications OK No thanks