Python Doubts

Discussion in 'Masters Program - Customers only' started by Saumyajit, Nov 19, 2019.

  1. Saumyajit

    Saumyajit Customer
    Customer

    Joined:
    Oct 18, 2019
    Messages:
    2
    Likes Received:
    0
    Hi I had 2 questions please:
    1) Why am I unable to convert a CSV file into Dataframe format ?
    2) To use Scipy, why do we need to type the import function every time. Can't we import just once in the beginning, like we do for pandas, and for numpy ?
     
    #1
  2. _3292

    _3292 TEJAS_PHASE
    Alumni

    Joined:
    Nov 2, 2016
    Messages:
    36
    Likes Received:
    3
    To answer your first question, here is the code:
    Code:
    import pandas as pd
    sample_dataset = pd.read_csv("specify_file_path")
    print(sample_dataset)
     
    #2
  3. Mantesh Chougule

    Joined:
    Dec 16, 2019
    Messages:
    3
    Likes Received:
    1
    how to open ipynb file??
     
    #3
    Govind Bhardwaj_1 likes this.
  4. Priyanka Debnath

    Priyanka Debnath New Member

    Joined:
    May 8, 2019
    Messages:
    1
    Likes Received:
    0
    How to make a python script named my_script.py
     
    #4

Share This Page